8000 TST: add test for Axes.loglog · matplotlib/matplotlib@c3d386d · GitHub
[go: up one dir, main page]

Skip to content
< 10000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

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

Appearance settings

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)
0