Skip to content

Commit

Permalink
Handle new plot options fontsize and bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Nov 25, 2023
1 parent d282829 commit 9a81bdb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spyder_kernels/console/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ def set_matplotlib_conf(self, conf):
resolution_n = 'pylab/inline/resolution'
width_n = 'pylab/inline/width'
height_n = 'pylab/inline/height'
fontsize_n = 'pylab/inline/fontsize'
bottom_n = 'pylab/inline/bottom'
bbox_inches_n = 'pylab/inline/bbox_inches'
inline_backend = 'inline'

Expand All @@ -581,6 +583,15 @@ def set_matplotlib_conf(self, conf):
(conf[width_n], conf[height_n])
)

if fontsize_n in conf:
self._set_mpl_inline_rc_config('font.size', conf[fontsize_n])

if bottom_n in conf:
self._set_mpl_inline_rc_config(
'figure.subplot.bottom',
conf[bottom_n]
)

if bbox_inches_n in conf:
self.set_mpl_inline_bbox_inches(conf[bbox_inches_n])

Expand Down

0 comments on commit 9a81bdb

Please sign in to comment.