Skip to content

Commit 545af6a

Browse files
authored
Fix issue with matplotlib 3.6.0 (#191)
* send a ghost to kill pacman * bump min mpl here too * update pre-commit * unpin mpl
1 parent 80de000 commit 545af6a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repos:
4747
- --ignore-words-list=celles,hist
4848

4949
- repo: https://github.com/keewis/blackdoc
50-
rev: v0.3.6
50+
rev: v0.3.7
5151
hooks:
5252
- id: blackdoc
5353

@@ -59,7 +59,7 @@ repos:
5959
args: [--config=pyproject.toml]
6060

6161
- repo: https://github.com/asottile/pyupgrade
62-
rev: v2.37.3
62+
rev: v2.38.0
6363
hooks:
6464
- id: pyupgrade
6565
args:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
matplotlib>=3,<3.6.0
1+
matplotlib >=3
22
numpy
33
pandas
44
scipy

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ classifiers =
3131
zip_safe = True
3232
include_package_data = True
3333
install_requires =
34-
matplotlib >=3,<3.6.0
34+
matplotlib >=3
3535
numpy >=1.19
3636
python_requires = >=3.6
3737
packages = find:

windrose/windrose.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, *args, **kwargs):
8282
PolarAxes.__init__(self, *args, **kwargs)
8383
self.set_aspect("equal", adjustable="box", anchor="C")
8484
self.radii_angle = 67.5
85-
self.cla()
85+
self.clear()
8686

8787
@staticmethod
8888
def from_ax(
@@ -109,11 +109,11 @@ def from_ax(
109109
else:
110110
return ax
111111

112-
def cla(self):
112+
def clear(self):
113113
"""
114114
Clear the current axes
115115
"""
116-
PolarAxes.cla(self)
116+
PolarAxes.clear(self)
117117

118118
self.theta_angles = np.arange(0, 360, 45)
119119
self.set_thetagrids(angles=self.theta_angles, labels=self.theta_labels)
@@ -315,7 +315,7 @@ def _init_plot(self, direction, var, **kwargs):
315315
windDirections.append(direction[dbin])
316316
var, direction = windSpeeds, windDirections
317317

318-
# self.cla()
318+
# self.clear()
319319
kwargs.pop("zorder", None)
320320

321321
# Init of the bins array if not set

0 commit comments

Comments
 (0)