Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac7f86b

Browse files
committed
Close all plot windows of a blocking show() on Ctrl+C
Addresses the Qt part of #23385. It appears that `qapp.quit()` does not automatically close the windows of the app. We therefore do it explicitly. A unit test for this would be quite complex. Test this by hand by Ctrl+C in an interactive shell.
1 parent 6501209 commit ac7f86b

File tree

63 files changed

+122
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+122
-102
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{ fullname | escape | underline }}
2+
3+
4+
.. currentmodule:: {{ module }}
5+
6+
7+
{% if objtype in ['class'] %}
8+
9+
.. auto{{ objtype }}:: {{ objname }}
10+
:no-members:
11+
:no-index:
12+
13+
{% endif %}

doc/api/figure_api.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010

1111
The Figure class
1212
================
13+
.. class:: Figure
14+
15+
Creation
16+
--------
17+
1318
.. autosummary::
1419
:toctree: _as_gen
15-
:template: autosummary_class_only.rst
20+
:template: autosummary_class_only_noindex.rst
1621
:nosignatures:
1722

1823
Figure

galleries/examples/animation/multiple_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
=======================
3-
Multiple axes animation
3+
Multiple Axes animation
44
=======================
55
66
This example showcases:

galleries/examples/axes_grid1/demo_axes_divider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Axes divider
44
============
55
6-
Axes divider to calculate location of axes and
7-
create a divider for them using existing axes instances.
6+
Axes divider to calculate location of Axes and
7+
create a divider for them using existing Axes instances.
88
"""
99

1010
import matplotlib.pyplot as plt

galleries/examples/axes_grid1/demo_axes_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Demo Axes Grid
44
==============
55
6-
Grid of 2x2 images with a single colorbar or with one colorbar per axes.
6+
Grid of 2x2 images with a single colorbar or with one colorbar per Axes.
77
"""
88

99
import matplotlib.pyplot as plt

galleries/examples/axes_grid1/demo_axes_hbox_divider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Using an `.HBoxDivider` to arrange subplots.
77
8-
Note that both axes' location are adjusted so that they have
8+
Note that both Axes' location are adjusted so that they have
99
equal heights while maintaining their aspect ratios.
1010
1111
"""

galleries/examples/axes_grid1/demo_colorbar_of_inset_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
===============================
3-
Adding a colorbar to inset axes
3+
Adding a colorbar to inset Axes
44
===============================
55
"""
66

galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
Colorbar with AxesDivider
66
=========================
77
8-
The `.axes_divider.make_axes_locatable` function takes an existing axes, adds
8+
The `.axes_divider.make_axes_locatable` function takes an existing Axes, adds
99
it to a new `.AxesDivider` and returns the `.AxesDivider`. The `.append_axes`
10-
method of the `.AxesDivider` can then be used to create a new axes on a given
11-
side ("top", "right", "bottom", or "left") of the original axes. This example
12-
uses `.append_axes` to add colorbars next to axes.
10+
method of the `.AxesDivider` can then be used to create a new Axes on a given
11+
side ("top", "right", "bottom", or "left") of the original Axes. This example
12+
uses `.append_axes` to add colorbars next to Axes.
1313
14-
Users should consider simply passing the main axes to the *ax* keyword argument of
15-
`~.Figure.colorbar` instead of creating a locatable axes manually like this.
14+
Users should consider simply passing the main Axes to the *ax* keyword argument of
15+
`~.Figure.colorbar` instead of creating a locatable Axes manually like this.
1616
See :ref:`colorbar_placement`.
1717
"""
1818

galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This example shows how to control the position, height, and width of colorbars
99
using `~mpl_toolkits.axes_grid1.inset_locator.inset_axes`.
1010
11-
Inset axes placement is controlled as for legends: either by providing a *loc*
11+
Inset Axes placement is controlled as for legends: either by providing a *loc*
1212
option ("upper right", "best", ...), or by providing a locator with respect to
1313
the parent bbox. Parameters such as *bbox_to_anchor* and *borderpad* likewise
1414
work in the same way, and are also demonstrated here.

galleries/examples/axes_grid1/scatter_hist_locatable_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
Show the marginal distributions of a scatter plot as histograms at the sides of
77
the plot.
88
9-
For a nice alignment of the main axes with the marginals, the axes positions
9+
For a nice alignment of the main Axes with the marginals, the Axes positions
1010
are defined by a ``Divider``, produced via `.make_axes_locatable`. Note that
11-
the ``Divider`` API allows setting axes sizes and pads in inches, which is its
11+
the ``Divider`` API allows setting Axes sizes and pads in inches, which is its
1212
main feature.
1313
14-
If one wants to set axes sizes and pads relative to the main Figure, see the
14+
If one wants to set Axes sizes and pads relative to the main Figure, see the
1515
:doc:`/gallery/lines_bars_and_markers/scatter_hist` example.
1616
"""
1717

0 commit comments

Comments
 (0)