Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: Fix the bars having numeric value of cm but labeled as inches#25518
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This is admittedly more of a band-aid than a proper fix, but at leastmake the generated figure correct.The underlying problem is the more fundemental one of inconsistent unitsbehavior in which some artists can be re-united after plotting (e.g.Line2D), while many others (e.g. Collections) cannot.Thus, until that is addressed (which is one of the goals of thedata-prototype work), simply setting units early is as good as we cando.Closesmatplotlib#5051
ksunden commentedMar 20, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Current version (the dataset changed from 3.6 to 3.7 here, but the units misbehavior was retained):https://matplotlib.org/3.7.0/gallery/units/bar_unit_demo.html Note that the values are set in cm, but the units are supposed to be "inches", but the plotted values are the same as the cm values. |
I'm 95% sure unit re-setting is possibleonly for |
…of cm but labeled as inches
…of cm but labeled as inches
…518-on-v3.7.1-docBackport PR#25518 on branch v3.7.1-doc (DOC: Fix the bars having numeric value of cm but labeled as inches)
…518-on-v3.7.xBackport PR#25518 on branch v3.7.x (DOC: Fix the bars having numeric value of cm but labeled as inches)
closed a 4-digit issue. Yeah! |
This is admittedly more of a band-aid than a proper fix, but at least
make the generated figure correct.
The underlying problem is the more fundemental one of inconsistent units
behavior in which some artists can be re-united after plotting (e.g.
Line2D), while many others (e.g. Collections) cannot.
Thus, until that is addressed (which is one of the goals of the
data-prototype work), simply setting units early is as good as we can
do.
Closes#5051
PR Summary
PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst