Skip to content

Commit 866a376

Browse files
committed
Updated to demonstrate horizontal and vertical
svn path=/trunk/matplotlib/; revision=1873
1 parent 7d32723 commit 866a376

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/widgets/span_selector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def onselect(vmin, vmax):
2525
span = SpanSelector(ax, onselect, 'horizontal', useblit=False,
2626
rectprops=dict(alpha=0.5, facecolor='red') )
2727

28-
2928
ax2 = fig.add_subplot(212)
3029
ax2.plot([1,2,3])
30+
31+
span2 = SpanSelector(ax2, onselect, 'vertical')
32+
3133
pylab.show()

0 commit comments

Comments
 (0)