Skip to content

Commit 2b2717b

Browse files
committed
Fix format() bug where short params not in _rc_nodots
1 parent 7ee4a19 commit 2b2717b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proplot/rctools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,11 @@ def get_ipython():
328328
# Mapping of settings without "dots" to their full names. This lets us pass
329329
# all settings as kwargs, e.g. ax.format(landcolor='b') instead of the much
330330
# more verbose ax.format(rc_kw={'land.color':'b'}).
331+
# WARNING: rcParamsShort has to be in here because Axes.format() only checks
332+
# _rc_nodots to filter out the rc kwargs!
331333
_rc_nodots = {
332334
name.replace('.', ''): name
333-
for names in (defaultParamsLong, rcParams)
335+
for names in (defaultParamsShort, defaultParamsLong, rcParams)
334336
for name in names.keys()
335337
}
336338

0 commit comments

Comments
 (0)