-
Notifications
You must be signed in to change notification settings - Fork 191
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
Add CLI to plot size control diagnostics #5723
Conversation
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.
Will finish the review later
axes = list(axes) | ||
# Damping times are sort of the odd ones out. Put it with control error but | ||
# on a different y-axis | ||
top1 = axes[0].plot(times, control_error, label="Control Error") |
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.
Does it make sense to plot abs(control_error)
on a log scale?
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.
No, not really. I think we'd lose a lot of information about small oscillations that way.
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.
How so? You see small oscillations well on a log scale. I suggest trying a log scale, and/or plotting both. Anyway, this is up to you.
de13e80
to
6d2237f
Compare
Proposed changes
This is just a quick utility that plots most of the size control diagnostics necessary to quickly see what has gone wrong in a simulation. Not intended for a super detailed analysis, but you can change the x-range on the plot to zoom in on a specific time (and have the y-axes of all plots rescale accordingly)
To quickly plot size control diagnostics, try
This gives the result of SizeControlDiagA.pdf
Upgrade instructions
Code review checklist
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments