Repository navigation
silx.gui.plot.PlotWidget: Fixed keep aspect ratio with matplotlib tight layout - #4734
Merged
Merged
Conversation
t20100
commented
Sep 25, 2026
| if not self.isKeepDataAspectRatio(): | ||
| newXRange, newYRange, newY2Range = xRange, yRange, y2Range | ||
| else: | ||
| bbox = self.fig.get_window_extent() |
Member
Author
t20100
force-pushed
the
fix-drag-keep-aspect-ratio-tight-layout
branch
from
October 2, 2026 09:25
947de87 to
4d6272e
Compare
t20100
commented
Oct 2, 2026
|
|
||
| self.fig = Figure( | ||
| tight_layout=config._MPL_TIGHT_LAYOUT, | ||
| layout="tight" if config._MPL_TIGHT_LAYOUT else None, |
Member
Author
There was a problem hiding this comment.
API modernisation: supported by matplotlib >=3.6
t20100
marked this pull request as ready for review
October 2, 2026 09:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
<Module or Topic>: <Action> <Summary>(see contributing guidelines)PR summary
This PR fixes a regression introduced in silx 3.1.x (see #4723).
Keeping issue #4723 opened since an issue remains with aspect ratio and tight layout which was already there in silx v.3.0
AI Disclosure