Skip to content
Merged
Prev Previous commit
Fix format() bug where short params not in _rc_nodots
  • Loading branch information
lukelbd committed Jan 8, 2020
commit 2b2717b644d0fbe4325afea59726cfd45829dbbd
4 changes: 3 additions & 1 deletion proplot/rctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,11 @@ def get_ipython():
# Mapping of settings without "dots" to their full names. This lets us pass
# all settings as kwargs, e.g. ax.format(landcolor='b') instead of the much
# more verbose ax.format(rc_kw={'land.color':'b'}).
# WARNING: rcParamsShort has to be in here because Axes.format() only checks
# _rc_nodots to filter out the rc kwargs!
_rc_nodots = {
name.replace('.', ''): name
for names in (defaultParamsLong, rcParams)
for names in (defaultParamsShort, defaultParamsLong, rcParams)
for name in names.keys()
}

Expand Down