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

Skip to content

Commit 06e14f7

Browse files
authored
Merge branch 'matplotlib:main' into documentation_1
2 parents 0a92247 + 43772b7 commit 06e14f7

Some content is hidden

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

52 files changed

+129
-97
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ commands:
9898
name: Install Python dependencies
9999
command: |
100100
python -m pip install --user \
101-
numpy<< parameters.numpy_version >> codecov coverage \
101+
numpy<< parameters.numpy_version >> \
102102
-r requirements/doc/doc-requirements.txt
103103
python -m pip install --no-deps --user \
104104
git+https://github.com/matplotlib/mpl-sphinx-theme.git

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ consider the following points:
3434
link to any relevant issues.
3535
3636
- If you are contributing fixes to docstrings, please pay attention to
37-
http://matplotlib.org/devel/documenting_mpl.html#formatting. In particular,
37+
https://matplotlib.org/stable/devel/documenting_mpl.html#formatting-conventions. In particular,
3838
note the difference between using single backquotes, double backquotes, and
3939
asterisks in the markup.
4040

.github/workflows/circleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: larsoner/circleci-artifacts-redirector-action@master
1414
with:
1515
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
api-token: ${{ secrets.CIRCLECI_TOKEN }}
1617
artifact-path: 0/doc/build/html/index.html
1718
circleci-jobs: docs-python39
1819
job-title: View the built docs

.github/workflows/cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
fetch-depth: 0
8484

85-
- uses: cygwin/cygwin-install-action@v3
85+
- uses: cygwin/cygwin-install-action@v4
8686
with:
8787
packages: >-
8888
ccache gcc-g++ gdb git graphviz libcairo-devel libffi-devel

ci/mypy-stubtest-allowlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ matplotlib.contour.ContourSet.allsegs
118118
matplotlib.contour.ContourSet.tcolors
119119
matplotlib.contour.ContourSet.tlinewidths
120120
matplotlib.figure.FigureBase.get_tightbbox
121+
matplotlib.ticker.LogLocator.__init__
122+
matplotlib.ticker.LogLocator.set_params
121123

122124
# positional-only argument name lacking leading underscores
123125
matplotlib.axes._base._AxesBase.axis
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*numdecs* parameter and attribute of ``LogLocator``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... are deprecated without replacement, because they have no effect.

doc/api/toolkits/mplot3d/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ of another object, even though it is physically behind it. This can result in
2525
plots that do not look "physically correct."
2626

2727
Unfortunately, while some work is being done to reduce the occurrence of this
28-
artifact, it is currently an intractable problem, and can not be fully solved
28+
artifact, it is currently an intractable problem, and cannot be fully solved
2929
until matplotlib supports 3D graphics rendering at its core.
3030

3131
The problem occurs due to the reduction of 3D data down to 2D + z-order
3232
scalar. A single value represents the 3rd dimension for all parts of 3D
3333
objects in a collection. Therefore, when the bounding boxes of two collections
3434
intersect, it becomes possible for this artifact to occur. Furthermore, the
35-
intersection of two 3D objects (such as polygons or patches) can not be
35+
intersection of two 3D objects (such as polygons or patches) cannot be
3636
rendered properly in matplotlib's 2D rendering engine.
3737

3838
This problem will likely not be solved until OpenGL support is added to all of

doc/devel/MEP/MEP11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ ordered from best/hardest to worst/easiest):
135135

136136
2. Continue to ship dateutil_, pytz_, six_ and pyparsing_ in
137137
our installer, but use the post-install-script to install them
138-
*only* if they can not already be found.
138+
*only* if they cannot already be found.
139139

140140
3. Move all of these packages inside a (new) ``matplotlib.extern``
141141
namespace so it is clear for outside users that these are

doc/devel/MEP/MEP14.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ has a number of shortcomings.
6262
- It only handles right-to-left languages, and doesn't handle many
6363
special features of Unicode, such as combining diacriticals.
6464
- The multiline support is imperfect and only supports manual
65-
line-breaking -- it can not break up a paragraph into lines of a
65+
line-breaking -- it cannot break up a paragraph into lines of a
6666
certain length.
6767
- It also does not handle inline formatting changes in order to
6868
support something like Markdown, reStructuredText or HTML. (Though
@@ -112,7 +112,7 @@ complicated than it seems at first.
112112
The "built-in" and "usetex" renderers have very different ways of
113113
handling font selection, given their different technologies. TeX
114114
requires the installation of TeX-specific font packages, for example,
115-
and can not use TrueType fonts directly. Unfortunately, despite the
115+
and cannot use TrueType fonts directly. Unfortunately, despite the
116116
different semantics for font selection, the same set of font
117117
properties are used for each. This is true of both the
118118
`.FontProperties` class and the font-related `.rcParams` (which

doc/devel/MEP/MEP19.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ has a number of shortcomings:
3636
- build or test products can only be saved from build off of branches
3737
on the main repo, not pull requests, so it is often difficult to
3838
"post mortem" analyse what went wrong. This is particularly
39-
frustrating when the failure can not be subsequently reproduced
39+
frustrating when the failure cannot be subsequently reproduced
4040
locally.
4141

4242
- It is not extremely fast. matplotlib's cpu and memory requirements

doc/devel/coding_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ Backport strategy
446446

447447
We will always backport to the patch release branch (*v3.N.x*):
448448

449-
- critical bug fixes (segfault, failure to import, things that the
450-
user can not work around)
449+
- critical bug fixes (segfault, failure to import, things that the user cannot
450+
work around)
451451
- fixes for regressions against the last two releases.
452452

453453
Everything else (regressions against older releases, bugs/api

doc/devel/triage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ The following workflow [1]_ is a good way to approach issue triaging:
157157
If a reproducible example is provided, but you see a simplification,
158158
add your simpler reproducible example.
159159

160-
If you can not reproduce the issue, please report that along with your
160+
If you cannot reproduce the issue, please report that along with your
161161
OS, Python, and Matplotlib versions.
162162

163163
If we need more information from either this or the previous step

doc/users/faq/troubleshooting_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ will save a lot of time.
149149
You will likely get a faster response writing to the mailing list than
150150
filing a bug in the bug tracker. Most developers check the bug
151151
tracker only periodically. If your problem has been determined to be
152-
a bug and can not be quickly solved, you may be asked to file a bug in
152+
a bug and cannot be quickly solved, you may be asked to file a bug in
153153
the tracker so the issue doesn't get lost.
154154

155155
.. _git-trouble:

doc/users/prev_whats_new/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ recent changes, please refer to the :doc:`/users/release_notes`.
22702270
Fix a "local variable unreferenced" bug in plotfile - MM
22712271

22722272
2008-05-19
2273-
Fix crash when Windows can not access the registry to determine font path
2273+
Fix crash when Windows cannot access the registry to determine font path
22742274
[Bug 1966974, thanks Patrik Simons] - MGD
22752275

22762276
2008-05-16
@@ -2493,7 +2493,7 @@ recent changes, please refer to the :doc:`/users/release_notes`.
24932493

24942494
2008-01-10
24952495
Fix bug when displaying a tick value offset with scientific notation.
2496-
(Manifests itself as a warning that the \times symbol can not be found). -
2496+
(Manifests itself as a warning that the \times symbol cannot be found). -
24972497
MGD
24982498

24992499
2008-01-10

doc/users/prev_whats_new/dflt_style_changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ behavior for the line width was different depending on backend:
657657
- PS: 1 px
658658
- Agg: 1 px
659659

660-
The old line width behavior can not be restored across all backends
660+
The old line width behavior cannot be restored across all backends
661661
simultaneously, but can be restored for a single backend by setting::
662662

663663
mpl.rcParams['hatch.linewidth'] = 0.1 # previous pdf hatch linewidth

doc/users/prev_whats_new/github_stats_3.0.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Issues (170):
342342
* :ghissue:`12626`: AttributeError: module 'matplotlib' has no attribute 'artist'
343343
* :ghissue:`11034`: Doc Typo: matplotlib.axes.Axes.get_yticklabels / Axis.get_ticklabels
344344
* :ghissue:`12624`: make_axes_locatable : Colorbar in the middle instead of bottom while saving a pdf, png.
345-
* :ghissue:`11094`: can not use GUI backends inside django request handlers
345+
* :ghissue:`11094`: cannot use GUI backends inside django request handlers
346346
* :ghissue:`12613`: transiently linked interactivity of unshared pair of axes generated with make_axes_locatable
347347
* :ghissue:`12578`: macOS builds are broken
348348
* :ghissue:`12612`: gui backends do not work inside of flask request handlers

doc/users/prev_whats_new/github_stats_3.3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Issues (25):
114114
* :ghissue:`18232`: different behaviour between 3.3.0 and 3.2.2 (and earlier) for ploting in a Tk canvas
115115
* :ghissue:`18212`: Updated WxAgg NavigationToolbar2 breaks custom toolbars
116116
* :ghissue:`18129`: Error reading png image from URL with imread in matplotlib 3.3
117-
* :ghissue:`18163`: Figure can not be closed if it has associated Agg canvas
117+
* :ghissue:`18163`: Figure cannot be closed if it has associated Agg canvas
118118
* :ghissue:`17974`: Major speed regression introduced in "plt.bar" definition clipping between 3.0.3 and 3.3.0.
119119
* :ghissue:`17998`: New warning: Substituting symbol \perp from STIXGeneral
120120
* :ghissue:`18057`: Fails to install in FreeBSD

doc/users/prev_whats_new/github_stats_3.5.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ Issues (187):
12291229
* :ghissue:`19259`: Set legend title font properties
12301230
* :ghissue:`20049`: add legend.labelcolor "argument" to mplstyle stylesheet
12311231
* :ghissue:`20452`: Wrong/not useful error message when plotting incompatible x and y
1232-
* :ghissue:`20266`: "$$" can not be displayed by ax.text()
1232+
* :ghissue:`20266`: "$$" cannot be displayed by ax.text()
12331233
* :ghissue:`20517`: Wrong shape of Z in documentation of contour
12341234
* :ghissue:`19423`: Switch to pydata-sphinx-theme
12351235
* :ghissue:`20435`: Legend Text's ``axes`` attribute is ``None``

doc/users/prev_whats_new/github_stats_3.6.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ Issues (202):
11831183
* :ghissue:`22947`: [Bug]: Can't use ``plt.sca()`` on axes created using subfigures
11841184
* :ghissue:`22623`: [ENH]: support rect with constrained_layout ("layout only to part of the figure")
11851185
* :ghissue:`22917`: "ab;cd" missing in subplot_mosaic tutorial
1186-
* :ghissue:`22686`: [Bug]: can not give init value for RangeSlider widget
1186+
* :ghissue:`22686`: [Bug]: cannot give init value for RangeSlider widget
11871187
* :ghissue:`22740`: [MNT]: Add codespell to pre-commit hooks
11881188
* :ghissue:`22893`: rainbow text example is broken
11891189
* :ghissue:`21571`: [Doc]: Clarify text positioning

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies:
4949
- flake8-docstrings>=1.4.0
5050
- gtk4
5151
- ipykernel
52-
- nbconvert[execute]!=6.0.0,!=6.0.1,!=7.3.0
52+
- nbconvert[execute]!=6.0.0,!=6.0.1,!=7.3.0,!=7.3.1
5353
- nbformat!=5.0.0,!=5.0.1
5454
- pandas!=0.25.0
5555
- psutil

galleries/users_explain/figure/interactive.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Jupyter Notebooks / JupyterLab
266266
the inline backend, is not. `~ipykernel.pylab.backend_inline`
267267
renders the figure once and inserts a static image into the
268268
notebook when the cell is executed. Because the images are static, they
269-
can not be panned / zoomed, take user input, or be updated from other
269+
cannot be panned / zoomed, take user input, or be updated from other
270270
cells.
271271

272272
To get interactive figures in the 'classic' notebook or Jupyter lab,

galleries/users_explain/figure/interactive_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Blocking the prompt
110110

111111
The simplest "integration" is to start the GUI event loop in
112112
'blocking' mode and take over the CLI. While the GUI event loop is
113-
running you can not enter new commands into the prompt (your terminal
113+
running you cannot enter new commands into the prompt (your terminal
114114
may echo the characters typed into the terminal, but they will not be
115115
sent to the Python interpreter because it is busy running the GUI
116116
event loop), but the figure windows will be responsive. Once the

galleries/users_explain/text/fonts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
-------------
172172
173173
There is no font that covers the entire Unicode space thus it is possible for the
174-
users to require a mix of glyphs that can not be satisfied from a single font.
174+
users to require a mix of glyphs that cannot be satisfied from a single font.
175175
While it has been possible to use multiple fonts within a Figure, on distinct
176176
`.Text` instances, it was not previous possible to use multiple fonts in the
177177
same `.Text` instance (as a web browser does). As of Matplotlib 3.6 the Agg,

galleries/users_explain/text/mathtext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
\sqrt{2}
146146
147147
Any base can (optionally) be provided inside square brackets. Note that the
148-
base must be a simple expression, and can not contain layout commands such as
148+
base must be a simple expression, and cannot contain layout commands such as
149149
fractions or sub/superscripts::
150150
151151
r'$\sqrt[3]{x}$'
@@ -306,7 +306,7 @@
306306
:rc:`mathtext.fallback` to either ``'cm'``, ``'stix'`` or ``'stixsans'``
307307
which will cause the mathtext system to use
308308
characters from an alternative font whenever a particular
309-
character can not be found in the custom font.
309+
character cannot be found in the custom font.
310310
311311
Note that the math glyphs specified in Unicode have evolved over time, and many
312312
fonts may not have glyphs in the correct place for mathtext.

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ class UnicodeFonts(TruetypeFonts):
462462
complete set of math symbols is STIX.
463463
464464
This class will "fallback" on the Bakoma fonts when a required
465-
symbol can not be found in the font.
465+
symbol cannot be found in the font.
466466
"""
467467

468468
# Some glyphs are not present in the `cmr10` font, and must be brought in

lib/matplotlib/animation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def finish(self):
797797
**mode_dict))
798798

799799
# Duplicate the temporary file clean up logic from
800-
# FileMovieWriter.finish. We can not call the inherited version of
800+
# FileMovieWriter.finish. We cannot call the inherited version of
801801
# finish because it assumes that there is a subprocess that we either
802802
# need to call to merge many frames together or that there is a
803803
# subprocess call that we need to clean up.
@@ -963,10 +963,10 @@ class to use, such as 'ffmpeg'.
963963
964964
def func(current_frame: int, total_frames: int) -> Any
965965
966-
where *current_frame* is the current frame number and
967-
*total_frames* is the total number of frames to be saved.
968-
*total_frames* is set to None, if the total number of frames can
969-
not be determined. Return values may exist but are ignored.
966+
where *current_frame* is the current frame number and *total_frames* is the
967+
total number of frames to be saved. *total_frames* is set to None, if the
968+
total number of frames cannot be determined. Return values may exist but are
969+
ignored.
970970
971971
Example code to write the progress to stdout::
972972

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4627,7 +4627,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
46274627
"ignoring the edgecolor in favor of the facecolor. This "
46284628
"behavior may change in the future."
46294629
)
4630-
# We need to handle markers that can not be filled (like
4630+
# We need to handle markers that cannot be filled (like
46314631
# '+' and 'x') differently than markers that can be
46324632
# filled, but have their fillstyle set to 'none'. This is
46334633
# to get:
@@ -4642,7 +4642,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
46424642
# promote the facecolor to be the edgecolor
46434643
edgecolors = colors
46444644
# set the facecolor to 'none' (at the last chance) because
4645-
# we can not fill a path if the facecolor is non-null
4645+
# we cannot fill a path if the facecolor is non-null
46464646
# (which is defendable at the renderer level).
46474647
colors = 'none'
46484648
else:
@@ -4879,13 +4879,13 @@ def reduce_C_function(C: array) -> float
48794879

48804880
if xscale == 'log':
48814881
if np.any(x <= 0.0):
4882-
raise ValueError("x contains non-positive values, so can not "
4883-
"be log-scaled")
4882+
raise ValueError(
4883+
"x contains non-positive values, so cannot be log-scaled")
48844884
tx = np.log10(tx)
48854885
if yscale == 'log':
48864886
if np.any(y <= 0.0):
4887-
raise ValueError("y contains non-positive values, so can not "
4888-
"be log-scaled")
4887+
raise ValueError(
4888+
"y contains non-positive values, so cannot be log-scaled")
48894889
ty = np.log10(ty)
48904890
if extent is not None:
48914891
xmin, xmax, ymin, ymax = extent

lib/matplotlib/axis.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class XAxis(Axis):
251251
) -> None: ...
252252
def tick_top(self) -> None: ...
253253
def tick_bottom(self) -> None: ...
254-
def get_ticks_position(self) -> Literal["top", "bottom", "default", "unkown"]: ...
254+
def get_ticks_position(self) -> Literal["top", "bottom", "default", "unknown"]: ...
255255
def get_tick_space(self) -> int: ...
256256

257257
class YAxis(Axis):
@@ -267,5 +267,5 @@ class YAxis(Axis):
267267
) -> None: ...
268268
def tick_right(self) -> None: ...
269269
def tick_left(self) -> None: ...
270-
def get_ticks_position(self) -> Literal["left", "right", "default", "unkown"]: ...
270+
def get_ticks_position(self) -> Literal["left", "right", "default", "unknown"]: ...
271271
def get_tick_space(self) -> int: ...

lib/matplotlib/backend_bases.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from enum import Enum, IntEnum
22
import os
3-
import io
43
from matplotlib import (
54
cbook,
65
colors,
@@ -27,7 +26,7 @@ from matplotlib.text import Text
2726
from matplotlib.transforms import Affine2D, Transform, TransformedPath, Bbox
2827

2928
from collections.abc import Callable, Iterable, Sequence
30-
from typing import Any, Literal, NamedTuple, TypeVar
29+
from typing import Any, IO, Literal, NamedTuple, TypeVar
3130
from numpy.typing import ArrayLike
3231
from .typing import ColorType, LineStyleType
3332

@@ -347,7 +346,7 @@ class FigureCanvasBase:
347346
def get_supported_filetypes_grouped(cls) -> dict[str, list[str]]: ...
348347
def print_figure(
349348
self,
350-
filename: str | os.PathLike | io.FileIO,
349+
filename: str | os.PathLike | IO,
351350
dpi: float | None = ...,
352351
facecolor: ColorType | Literal["auto"] | None = ...,
353352
edgecolor: ColorType | Literal["auto"] | None = ...,

lib/matplotlib/backends/backend_agg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ def draw_path(self, gc, path, transform, rgbFace=None):
147147
except OverflowError:
148148
cant_chunk = ''
149149
if rgbFace is not None:
150-
cant_chunk += "- can not split filled path\n"
150+
cant_chunk += "- cannot split filled path\n"
151151
if gc.get_hatch() is not None:
152-
cant_chunk += "- can not split hatched path\n"
152+
cant_chunk += "- cannot split hatched path\n"
153153
if not path.should_simplify:
154154
cant_chunk += "- path.should_simplify is False\n"
155155
if len(cant_chunk):
156156
msg = (
157157
"Exceeded cell block limit in Agg, however for the "
158158
"following reasons:\n\n"
159159
f"{cant_chunk}\n"
160-
"we can not automatically split up this path to draw."
160+
"we cannot automatically split up this path to draw."
161161
"\n\nPlease manually simplify your path."
162162
)
163163

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
657657
s = _escape_and_apply_props(s, prop)
658658

659659
_writeln(self.fh, r"\begin{pgfscope}")
660+
self._print_pgf_clip(gc)
660661

661662
alpha = gc.get_alpha()
662663
if alpha != 1.0:

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def gui_repaint(self, drawDC=None):
587587
return
588588
if not drawDC: # not called from OnPaint use a ClientDC
589589
drawDC = wx.ClientDC(self)
590-
# For 'WX' backend on Windows, the bitmap can not be in use by another
590+
# For 'WX' backend on Windows, the bitmap cannot be in use by another
591591
# DC (see GraphicsContextWx._cache).
592592
bmp = (self.bitmap.ConvertToImage().ConvertToBitmap()
593593
if wx.Platform == '__WXMSW__'

0 commit comments

Comments
 (0)