From 93e680a946718ed7107b31e234ecf80da4e69306 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Sun, 18 Feb 2024 20:24:27 +0000 Subject: [PATCH] Change default resolution of plots to 144 dpi --- spyder/config/main.py | 4 ++-- .../variableexplorer/widgets/tests/test_namespacebrowser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spyder/config/main.py b/spyder/config/main.py index d7f79ed0a82..f4f03c96901 100644 --- a/spyder/config/main.py +++ b/spyder/config/main.py @@ -149,7 +149,7 @@ 'pylab/autoload': False, 'pylab/backend': 'inline', 'pylab/inline/figure_format': 'png', - 'pylab/inline/resolution': 72, + 'pylab/inline/resolution': 144, 'pylab/inline/width': 6, 'pylab/inline/height': 4, 'pylab/inline/fontsize': 10.0, @@ -670,4 +670,4 @@ # or if you want to *rename* options, then you need to do a MAJOR update in # version, e.g. from 3.0.0 to 4.0.0 # 3. You don't need to touch this value if you're just adding a new option -CONF_VERSION = '82.1.0' +CONF_VERSION = '82.2.0' diff --git a/spyder/plugins/variableexplorer/widgets/tests/test_namespacebrowser.py b/spyder/plugins/variableexplorer/widgets/tests/test_namespacebrowser.py index 3881605926f..ce8a0d05fe9 100644 --- a/spyder/plugins/variableexplorer/widgets/tests/test_namespacebrowser.py +++ b/spyder/plugins/variableexplorer/widgets/tests/test_namespacebrowser.py @@ -226,7 +226,7 @@ def test_namespacebrowser_plot_with_mute_inline_plotting_true( mock_axis.plot.assert_called_once_with(my_list) mock_print_figure.assert_called_once_with( - mock_figure, fmt='png', bbox_inches='tight', dpi=72) + mock_figure, fmt='png', bbox_inches='tight', dpi=144) expected_args = [mock_png, 'image/png', namespacebrowser.shellwidget] assert blocker.args == expected_args