-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Axes3D set_xbound() doesn't work on negative lower limit with rc_context(), "text.usetex": True when %matplotlib notebook is enabled #18110
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
Comments
Axes3D
's set_xbound() doesn't work on negative lower limit with rc_context(), "text.usetex": True when %matplotlib notebook is enabled
Axes3D
's set_xbound() doesn't work on negative lower limit with rc_context(), "text.usetex": True when %matplotlib notebook is enabled
I wonder if this bug and #18112 are actually the result of the same bug? |
Check by setting
if that fixes the issue, it's most likely the same cause. |
In the console for the first one, we see:
I do not understand why this only triggers in the notebook, though. |
Ah wait, that was because my notebook wasn't from the environment and using older Matplotlib. Current versions have Please update to 3.3.0, but I believe this is fixed. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Axes3D
'sset_xbound()
(orset_ybound()
,set_zbound()
) doesn't work on negative lower limit while using withrc_context()
and"text.usetex": True
. It does not work when%matplotlib notebook
is enabled, but it works on%matplotlib inline
However if the bounds are set in positives, it works, otherwise it won't.
Code for reproduction
Outcome

Another case
Outcome

The bounds work, however if you look at the axes tick-labels, you can see that only
0
s are in tex, others are not.Expected outcome
The bounds should work when the lower-bounds are negative, also all the axes tick-labels in the second case should all be in tex.
Matplotlib version
print(matplotlib.get_backend())
): nbAggThe text was updated successfully, but these errors were encountered: