Skip to content

Commit 5614512

Browse files
committed
Fix bug where twin axes drawn twice
1 parent 16ef16d commit 5614512

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ ProPlot v1.0.0 (2020-##-##)
1515
This will be published when some major refactoring tasks are completed.
1616
See :pr:`45`, :pr:`46`, and :pr:`50`.
1717

18+
ProPlot v0.2.6 (2019-12-XX)
19+
===========================
20+
Bug fixes
21+
---------
22+
- Fix issue where twin axes are drawn *twice*.
23+
24+
1825
ProPlot v0.2.5 (2019-12-07)
1926
===========================
2027
Features
2128
--------
2229
- Much better `~proplot.axistools.CutoffScale` algorithm, permit arbitrary
2330
cutoffs (:pr:`83`).
2431

25-
2632
ProPlot v0.2.4 (2019-12-07)
2733
===========================
2834
Deprecated

proplot/axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,6 +2561,7 @@ def altx(self, *args, **kwargs):
25612561
self._altx_overrides()
25622562
ax._altx_overrides()
25632563
self.add_child_axes(ax)
2564+
self.figure._axstack.remove(ax) # or gets drawn twice!
25642565
return ax
25652566

25662567
def alty(self):
@@ -2578,6 +2579,7 @@ def alty(self):
25782579
self._alty_overrides()
25792580
ax._alty_overrides()
25802581
self.add_child_axes(ax)
2582+
self.figure._axstack.remove(ax) # or gets drawn twice!
25812583
return ax
25822584

25832585
def dualx(self, transform, transform_kw=None, **kwargs):

0 commit comments

Comments
 (0)