8000 MNT: fix spelling in class name · matplotlib/matplotlib@dcc9693 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcc9693

Browse files
committed
MNT: fix spelling in class name
1 parent ad78078 commit dcc9693

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/matplotlib/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
3737
from matplotlib.gridspec import GridSpec
3838
from matplotlib.layout_engine import (
39-
ConstrainedLayoutEngine, TightLayoutEngine, LayoutEngine, NullLayoutEnigne
39+
ConstrainedLayoutEngine, TightLayoutEngine, LayoutEngine, NullLayoutEngine
4040
)
4141
import matplotlib.legend as mlegend
4242
from matplotlib.patches import Rectangle
@@ -2358,7 +2358,7 @@ def set_layout_engine(self, layout=None, **kwargs):
23582358
new_layout_engine = ConstrainedLayoutEngine(**kwargs)
23592359
elif layout == 'none':
23602360
if self._layout_engine is not None:
2361-
new_layout_engine = NullLayoutEnigne(
2361+
new_layout_engine = NullLayoutEngine(
23622362
self._layout_engine.adjust_compatible,
23632363
self._layout_engine.colorbar_gridspec
23642364
)

lib/matplotlib/layout_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def execute(self, fig):
101101
raise NotImplementedError
102102

103103

104-
class NullLayoutEnigne(LayoutEngine):
104+
class NullLayoutEngine(LayoutEngine):
105105
"""
106106
A no-op LayoutEngine.
107107
@@ -110,7 +110,7 @@ class NullLayoutEnigne(LayoutEngine):
110110
Parameters
111111
----------
112112
adjust_compatible, colorbar_gridspec : bool
113-
Allow the NullLayoutEnigne to mirror the behavior of whatever
113+
Allow the NullLayoutEngine to mirror the behavior of whatever
114114
layout engine it is replacing.
115115
116116
"""

lib/matplotlib/tests/test_figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from matplotlib.figure import Figure
2020
from matplotlib.layout_engine import (ConstrainedLayoutEngine,
2121
TightLayoutEngine,
22-
NullLayoutEnigne)
22+
NullLayoutEngine)
2323
from matplotlib.ticker import AutoMinorLocator, FixedFormatter, ScalarFormatter
2424
import matplotlib.pyplot as plt
2525
import matplotlib.dates as mdates
@@ -627,7 +627,7 @@ def test_invalid_layouts():
627627
fig.set_layout_engine("constrained")
628628

629629
fig.set_layout_engine("none")
630-
assert isinstance(fig.get_layout_engine(), NullLayoutEnigne)
630+
assert isinstance(fig.get_layout_engine(), NullLayoutEngine)
631631

632632

633633
@check_figures_equal(extensions=["png", "pdf"])

0 commit comments

Comments
 (0)
0