Skip to content
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

Fix displacement of colorbar for eps with bbox_inches='tight' #25193

Merged
merged 1 commit into from Feb 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/matplotlib/backends/backend_ps.py
Expand Up @@ -825,7 +825,7 @@ def get_default_filetype(self):
def _print_ps(
self, fmt, outfile, *,
metadata=None, papertype=None, orientation='portrait',
**kwargs):
bbox_inches_restore=None, **kwargs):

dpi = self.figure.dpi
self.figure.dpi = 72 # Override the dpi kwarg
Expand Down Expand Up @@ -860,7 +860,8 @@ def _print_ps(
if mpl.rcParams['text.usetex'] else
self._print_figure)
printer(fmt, outfile, dpi=dpi, dsc_comments=dsc_comments,
orientation=orientation, papertype=papertype, **kwargs)
orientation=orientation, papertype=papertype,
bbox_inches_restore=bbox_inches_restore, **kwargs)

def _print_figure(
self, fmt, outfile, *,
Expand Down