Skip to content
Merged
Prev Previous commit
Next Next commit
dualx/y bugfix, pass kwargs to altx/y
  • Loading branch information
lukelbd committed Jan 7, 2020
commit 0e3079ac8b6ade07926fb019eb9d027baef1718d
6 changes: 2 additions & 4 deletions proplot/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2633,18 +2633,16 @@ def dualx(self, arg, **kwargs):
# NOTE: Matplotlib 3.1 has a 'secondary axis' feature. For the time
# being, our version is more robust (see FuncScale) and simpler, since
# we do not create an entirely separate _SecondaryAxis class.
ax = self.altx()
ax = self.altx(**kwargs)
self._dualx_arg = arg
self._dualx_overrides()
ax.format(**kwargs)
return ax

def dualy(self, arg, **kwargs):
"""Docstring is replaced below."""
ax = self.alty()
ax = self.alty(**kwargs)
self._dualy_arg = arg
self._dualy_overrides()
ax.format(**kwargs)
return ax

def draw(self, renderer=None, *args, **kwargs):
Expand Down