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

Skip to content

Commit c2b3c1d

Browse files
committed
apply patch by Paul Ivanov to move twinx second axis offset to the RHS
svn path=/branches/v1_0_maint/; revision=8879
1 parent cc62a7d commit c2b3c1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/axes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7378,6 +7378,7 @@ def twinx(self):
73787378
frameon=False)
73797379
ax2.yaxis.tick_right()
73807380
ax2.yaxis.set_label_position('right')
7381+
ax2.yaxis.set_offset_position('right')
73817382
self.yaxis.tick_left()
73827383
ax2.xaxis.set_visible(False)
73837384
return ax2

0 commit comments

Comments
 (0)