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

Skip to content

Commit c3d386d

Browse files
committed
TST: add test for Axes.loglog
1 parent 51634e7 commit c3d386d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4147,6 +4147,16 @@ def test_title_location_roundtrip():
41474147
assert_raises(ValueError, ax.set_title, 'fail', loc='foo')
41484148

41494149

4150+
@image_comparison(baseline_images=["loglog"], remove_text=True,
4151+
extensions=['png'])
4152+
def test_loglog():
4153+
fig, ax = plt.subplots()
4154+
x = np.arange(1, 11)
4155+
ax.loglog(x, x**3, lw=5)
4156+
ax.tick_params(length=25, width=2)
4157+
ax.tick_params(length=15, width=2, which='minor')
4158+
4159+
41504160
if __name__ == '__main__':
41514161
import nose
41524162
import sys

0 commit comments

Comments
 (0)