Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e77c455

Browse files
committed
Fix issue with twin spines appearing on top of orig axes
1 parent d78ee7d commit e77c455

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎proplot/axes/cartesian.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ def altx(self, **kwargs):
10481048
# because the axes was created after the "parent" one, use the inset_axes
10491049
# zorder of 4 and make the background transparent.
10501050
kwargs = self._parse_alt('x', **kwargs)
1051+
kwargs.setdefault('yloc', 'neither')
10511052
kwargs.setdefault('xloc', 'top') # other locations follow by default
10521053
kwargs.setdefault('grid', False) # note xgrid=True would override this
10531054
kwargs.setdefault('zorder', 4)
@@ -1076,6 +1077,7 @@ def alty(self, **kwargs):
10761077
"""
10771078
# Parse input args
10781079
kwargs = self._parse_alt('y', **kwargs)
1080+
kwargs.setdefault('xloc', 'neither')
10791081
kwargs.setdefault('yloc', 'right') # other locations follow by default
10801082
kwargs.setdefault('grid', False) # note ygrid=True would override this
10811083
kwargs.setdefault('zorder', 4)

0 commit comments

Comments
 (0)