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

Skip to content

Revert "Merge pull request #3681 from jbmohler/use_fast_from_codes_and_v... #4007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
TST : add test for log transform with zero
example from PR #3998
  • Loading branch information
tacaswell committed Jan 17, 2015
commit 9e68161b91c2818f3bec4e7a3ea9cd0bade29c9c
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions lib/matplotlib/tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ def test_point_in_path_nan():
assert not contains[0]


@image_comparison(baseline_images=['semi_log_with_zero'], extensions=['png'])
def test_log_transform_with_zero():
x = np.arange(-10, 10)
y = (1.0 - 1.0/(x**2+1))**20

fig, ax = plt.subplots()
ax.semilogy(x, y, "-o", lw=15)
ax.grid(True)
plt.show()


if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)