8000 Merge pull request #25193 from ksunden/main · matplotlib/matplotlib@9ff38a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ff38a8

Browse files
authored
Merge pull request #25193 from ksunden/main
Fix displacement of colorbar for eps with bbox_inches='tight'
2 parents 73909bc + 284827c commit 9ff38a8

File tree

3 files changed

+910
-2
lines changed

3 files changed

+910
-2
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def get_default_filetype(self):
825825
def _print_ps(
826826
self, fmt, outfile, *,
827827
metadata=None, papertype=None, orientation='portrait',
828-
**kwargs):
828+
bbox_inches_restore=None, **kwargs):
829829

830830
dpi = self.figure.dpi
831831
self.figure.dpi = 72 # Override the dpi kwarg
@@ -860,7 +860,8 @@ def _print_ps(
860860
if mpl.rcParams['text.usetex'] else
861861
self._print_figure)
862862
printer(fmt, outfile, dpi=dpi, dsc_comments=dsc_comments,
863-
orientation=orientation, papertype=papertype, **kwargs)
863+
orientation=orientation, papertype=papertype,
864+
bbox_inches_restore=bbox_inches_restore, **kwargs)
864865

865866
def _print_figure(
866867
self, fmt, outfile, *,

0 commit comments

Comments
 (0)
0