-
Notifications
You must be signed in to change notification settings - Fork 22
parallel park a car. steps towards #204 and #348 #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
||
# %% | ||
# Show the optimal path of the mass center. | ||
xs, us, ps = prob.parse_free(solution) | ||
fig, ax = plt.subplots() | ||
ax.plot(xs[0], xs[1]) | ||
ax.plot(xs[0, :], xs[1, :]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be necessary. Why did you change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because at one time I had a problem. Was not related to this but forgot to change it back.
ax.set_xlabel(r'$x$ [m]') | ||
ax.set_ylabel(r'$y$ [m]'); | ||
_ = ax.set_ylabel(r'$y$ [m]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_ = ax.set_ylabel(r'$y$ [m]'); | |
_ = ax.set_ylabel(r'$y$ [m]') |
Remove the semicolon if you add the _ =
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. I do not know, wha the semicolon does not always work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know either. I thought it would suppress output in sphinx gallery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, it did not on my make html
I shaved away CPU time for my Newtonian Impact
:-)) :-))
On my PC running time reduced from about 47 sec to less than 10 sec.