FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport PR #24266 on branch v3.6.x (TST: Increase fp tolerance on more tests for new NumPy) by meeseeksmachine · Pull Request #24271 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 3 additions & 2 deletions lib/matplotlib/tests/test_contour.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import contourpy
import numpy as np
from numpy.testing import assert_array_almost_equal
from numpy.testing import (
assert_array_almost_equal, assert_array_almost_equal_nulp)
import matplotlib as mpl
from matplotlib.testing.decorators import image_comparison
from matplotlib import pyplot as plt, rc_context
Expand Down Expand Up @@ -313,7 +314,7 @@ def test_contourf_log_extension():
cb = plt.colorbar(c1, ax=ax1)
assert cb.ax.get_ylim() == (1e-8, 1e10)
cb = plt.colorbar(c2, ax=ax2)
assert cb.ax.get_ylim() == (1e-4, 1e6)
assert_array_almost_equal_nulp(cb.ax.get_ylim(), np.array((1e-4, 1e6)))
cb = plt.colorbar(c3, ax=ax3)


Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/tests/test_streamplot.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def test_startpoints():
plt.plot(start_x, start_y, 'ok')


@image_comparison(['streamplot_colormap'], remove_text=True, style='mpl20')
@image_comparison(['streamplot_colormap'], remove_text=True, style='mpl20',
tol=0.022)
def test_colormap():
X, Y, U, V = velocity_field()
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
Expand Down

Back | FazBrowse Home | New Git URL