Skip to content

Commit 0e3079a

Browse files
committed
dualx/y bugfix, pass kwargs to altx/y
1 parent 4fdcfcd commit 0e3079a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

proplot/axes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,18 +2633,16 @@ def dualx(self, arg, **kwargs):
26332633
# NOTE: Matplotlib 3.1 has a 'secondary axis' feature. For the time
26342634
# being, our version is more robust (see FuncScale) and simpler, since
26352635
# we do not create an entirely separate _SecondaryAxis class.
2636-
ax = self.altx()
2636+
ax = self.altx(**kwargs)
26372637
self._dualx_arg = arg
26382638
self._dualx_overrides()
2639-
ax.format(**kwargs)
26402639
return ax
26412640

26422641
def dualy(self, arg, **kwargs):
26432642
"""Docstring is replaced below."""
2644-
ax = self.alty()
2643+
ax = self.alty(**kwargs)
26452644
self._dualy_arg = arg
26462645
self._dualy_overrides()
2647-
ax.format(**kwargs)
26482646
return ax
26492647

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

0 commit comments

Comments
 (0)