Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8631c31

Browse files
committed
Add test for tight AxisArtist
1 parent133f797 commit8631c31

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

‎lib/mpl_toolkits/tests/test_axisartist_axis_artist.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,21 @@ def test_axis_artist():
9797
axisline.label.set_pad(5)
9898

9999
ax.set_ylabel("Test")
100+
101+
102+
@image_comparison(['axis_artist_tight.png'],style='mpl20',
103+
remove_text=True)
104+
deftest_axis_artist_tight():
105+
fig,ax=plt.subplots()
106+
107+
ax.xaxis.set_visible(False)
108+
ax.yaxis.set_visible(False)
109+
110+
forlocin ('left','right','bottom'):
111+
_helper=AxisArtistHelperRectlinear.Fixed(ax,loc=loc)
112+
axisline=AxisArtist(ax,_helper,offset=None,axis_direction=loc)
113+
ax.add_artist(axisline)
114+
115+
# Settings for bottom AxisArtist.
116+
axisline.major_ticks.set_tick_out(True)
117+
plt.tight_layout()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp