diff --git a/spyder_kernels/console/kernel.py b/spyder_kernels/console/kernel.py index 0585077a..56902ee1 100644 --- a/spyder_kernels/console/kernel.py +++ b/spyder_kernels/console/kernel.py @@ -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' @@ -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])