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

Skip to content

Commit 3628b23

Browse files
committed
Add test and images
1 parent fe7c9ed commit 3628b23

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

lib/mpl_toolkits/axisartist/tests/test_axislines.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,17 @@ def test_axisline_style_size_color():
117117

118118
for direction in ("left", "right", "bottom", "top"):
119119
ax.axis[direction].set_visible(False)
120+
121+
122+
@image_comparison(['axisline_style_tight.png'], remove_text=True,
123+
style='mpl20')
124+
def test_axisline_style_tight():
125+
fig = plt.figure(figsize=(2, 2))
126+
ax = fig.add_subplot(axes_class=AxesZero)
127+
ax.axis["xzero"].set_axisline_style("-|>", size=5, facecolor='g')
128+
ax.axis["xzero"].set_visible(True)
129+
ax.axis["yzero"].set_axisline_style("->, size=8")
130+
ax.axis["yzero"].set_visible(True)
131+
132+
for direction in ("left", "right", "bottom", "top"):
133+
ax.axis[direction].set_visible(False)

0 commit comments

Comments
 (0)