8000 Minor cleanup · proplot-dev/proplot@f7dea6c · GitHub
[go: up one dir, main page]

Skip to content

Commit f7dea6c

Browse files
committed
Minor cleanup
1 parent 879e31c commit f7dea6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

proplot/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ def register_fonts():
14651465
# NOTE: Previously, cache filename was specified as _fmcache variable, but
14661466
# recently became inaccessible. Must reproduce mpl code instead! Annoying.
14671467
# NOTE: Older mpl versions used fontList.json as the cache, but these
1468-
# versions aldo did not have 'addfont', so makes no difference.
1468+
# versions also did not have 'addfont', so makes no difference.
14691469
for fname in fnames_proplot:
14701470
mfonts.fontManager.addfont(fname)
14711471
cache = os.path.join(

proplot/constructor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ def Proj(name, basemap=None, **kwargs):
13631363
raise RuntimeError(
13641364
 8000 9;Basemap is no longer maintained and is incompatible with '
13651365
'matplotlib >= 3.3. Please use cartopy as your cartographic '
1366-
'plotting backend or downgrade to matplotlib <=3.2.'
1366+
'plotting backend or downgrade to matplotlib <= 3.2.'
13671367
)
13681368
if 'lonlim' in kwargs:
13691369
kwargs['llcrnrlon'], kwargs['urcrnrlon'] = kwargs.pop('lonlim')

proplot/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _preprocess(self, *args, **kwargs):
9999
local = fig._mathtext_fallback
100100
if local is None:
101101
context = {}
102-
elif _version_mpl >= _version('3.4.0'):
102+
elif _version_mpl >= _version('3.4'):
103103
context = {'mathtext.fallback': local if isinstance(local, str) else 'cm' if local else None} # noqa: E501
104104
else:
105105
context = {'mathtext.fallback_to_cm': bool(local)}
@@ -827,7 +827,7 @@ def _insert_row_column(
827827
gridspec_ss._subplot_spec = subplotspec_new
828828
else:
829829
raise ValueError('Unexpected GridSpecFromSubplotSpec nesting.')
830-
if _version_mpl >= _version('3.4.0'):
830+
if _version_mpl >= _version('3.4'):
831831
ax.set_position(ax.get_subplotspec().get_position(ax.figure))
832832
else:
833833
ax.update_params()

0 commit comments

Comments
 (0)
0