-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Cropping text to axes #5554
Comments
Does
work? |
By default the txt = ax.text(.7, .7, 'very long string' * 50, clip_on=True) or txt.set_clip_on(True) |
Sorry for the spam. A general suggestion: would it be possible, whenever a docstring of a pyplot function states something like
(from |
Agree with @anntzer . For someone not an expert with matplotlib, I have to dig deep into the help file to set maybe just a font size. Many times I just don't know there such a parameter, or can't spell the parameter correctly. |
After
text(-.01, -.01, "foo")
, the text is drawn on top of the axes.An option to crop the text to the axes limits would be welcome. At least, changing the zorder doesn't seem to be enough.
The text was updated successfully, but these errors were encountered: