Skip to content

Commit e434d1c

Browse files
committed
Test for axis direction
1 parent 6a2379a commit e434d1c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/mpl_toolkits/tests/test_axisartist_floating_axes.py

+10
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,13 @@ def test_curvelinear4():
118118
ax2.scatter(xx, yy)
119119
l, = ax2.plot(xx, yy, "k-")
120120
l.set_clip_path(ax1.patch)
121+
122+
123+
def test_axis_direction():
124+
# Check that axis direction is propagated on a floating axis
125+
fig = plt.figure()
126+
ax = Subplot(fig, 111)
127+
fig.add_subplot(ax)
128+
ax.axis['y'] = ax.new_floating_axis(nth_coord=1, value=0,
129+
axis_direction='left')
130+
assert ax.axis['y']._axis_direction == 'left'

0 commit comments

Comments
 (0)