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

Skip to content

Commit de270cd

Browse files
committed
support for shared axes
svn path=/trunk/matplotlib/; revision=890
1 parent d4d0cc2 commit de270cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/ganged_plots.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
# off xtick labels on all but the lower plot
2121
ax1 = axes([0.1, 0.1, 0.8, 0.25]) # lower
2222
ax2 = axes([0.1, 0.35, 0.8, 0.25], sharex=ax1) # middle
23-
ax2.set_xticklabels([])
23+
set(ax2.get_xticklabels(), visible=False)
2424
ax3 = axes([0.1, 0.6, 0.8, 0.25], sharex=ax1) # upper
25-
ax3.set_xticklabels([])
25+
set(ax3.get_xticklabels(), visible=False)
26+
2627

2728
ax1.plot(t,s1)
2829
ax2.plot(t,s2)

0 commit comments

Comments
 (0)