Skip to content

Use rcParams to control default "raise window" behavior #10766

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def show(cls, block=None):
if not managers:
return
for manager in managers:
manager.show()
if rcParams['figure.show']:
manager.show()
if block is None:
# Hack: Are we in IPython's pylab mode?
from matplotlib import pyplot
Expand Down
2 changes: 2 additions & 0 deletions lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,8 @@ def _validate_linestyle(ls):
# This is a buffer around the axes in inches. This is 3pts.
'figure.constrained_layout.h_pad': [0.04167, validate_float],
'figure.constrained_layout.w_pad': [0.04167, validate_float],
# Show the figure on the GUI
'figure.show': [True, validate_bool],

## Saving figure's properties
'savefig.dpi': ['figure', validate_dpi], # DPI
Expand Down
1 change: 1 addition & 0 deletions matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ backend : $TEMPLATE_BACKEND
#figure.constrained_layout.w_pad : 0.04167 ## inches. Default is 3./72. inches (3 pts)
#figure.constrained_layout.hspace : 0.02 ## Space between subplot groups. Float representing
#figure.constrained_layout.wspace : 0.02 ## a fraction of the subplot widths being separated.
#figure.show : True ## Show the figure on the GUI

#### IMAGES
#image.aspect : equal ## equal | auto | a number
Expand Down