-
Notifications
You must be signed in to change notification settings - Fork 399
Allow colorbar length and/or width to be given in percentages #5775
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
Conversation
If either of these has percentages then the value replace the default percentages values of 80% and 5% for length and width, respectively.
This replaces the default values of 80% and 4% for length and width, respectively.
|
Strange that I dont get that. So it happens when the first (length) argument is a dimension and the second (width) is a percentage? Is that the only combination that fails? |
|
Yes, only that combination. |
|
I am testing anim08 on the tempfile_fix branch so it will take an hour before I can switch... |
|
OK, should be better now - please try again. |
Esteban82
left a comment
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.
Now it works.
maxrjones
left a comment
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.
Very nice!
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>


If either of these are given in percentages then their values replace the default percentage values of 80% and 5% for length and width, respectively. I have added this information to the usage and documentation, and added a test script that tries various combination of percentages and actual dimensions:
which yields
Closes #5771.