-
Notifications
You must be signed in to change notification settings - Fork 224
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
Unnecessarily large padding #72
Comments
I agree with this! |
Any suggestions or workaround? Thanks. |
I agree with this too! Any updates? @martinRenou |
@martinRenou As far as I understand after reading the source code, |
Yeah you're right. Although the header/footer and the toolbox are taking some space. But they can still be hidden with the Actually this issue starts to be a bit old, and lots of changes have happened since those screenshots were taken. Shouldn't we close this issue? Or did you find that ipympl was still taking too much space with recent releases @GarrisonD ? |
I am using the latest version (0.5.6) and can confirm that there is still too much space around. For some cases With With With |
@martinRenou |
Maybe @tacaswell you would have some comments? I am not familiar with the Matplotlib API. |
On ipympl The To get permanent results consider this quote from the tight_layout tutorial
|
I think the place to take this up would be on the matplotlib repo as this isn't something ipympl controls. |
This should be more flexible now, as you can optionally hide the header/footer/toolbar. At some point we could improve the toolbar space by fixing #299 |
Could it be, that we have some kind of regression here? The code to generate the plot is this snippet: plt.figure(figsize=(10, 20))
plt.title("Epipolar lines in rectified images.")
img_epilines2 = np.random.random((1280, 2048, 3))
%matplotlib widget
plt.imshow(img_epilines2)
plt.tight_layout()
plt.show() matplotlib 3.8.4 Or dou you think it'd be better to raise a new issue somewhere @martinRenou? |
Yes, probably a new issue would be better 👍🏽 |
xref #553 |
I came here because I was looking for
found it in #396 |
%matplotlib widget
introduces a lot of padding around the plotted image, emphasised when compared to%matplotlib inline
I have tried various matplotlib calls, but can't figure out a way to reduce it. In any case, I think it should be default be smaller than it is?
I'm sure I'm not the only one who's had to scroll a bit too much to get past very large images.
Two additional questions:
widget
?Test code:
The text was updated successfully, but these errors were encountered: