Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809ad23 commit d3bf464Copy full SHA for d3bf464
1 file changed
lib/matplotlib/tests/test_colorbar.py
@@ -631,7 +631,9 @@ def test_colorbar_format(fmt):
631
assert cbar.ax.yaxis.get_ticklabels()[4].get_text() == '2.00e+02'
632
633
# but if we change the norm:
634
- im.set_norm(LogNorm(vmin=0.1, vmax=10))
+ # when we require numpy >= 2, vmin can be 0.1, but at numpy 1.x this is
635
+ # sensitive to floating point errors
636
+ im.set_norm(LogNorm(vmin=0.09999, vmax=10))
637
fig.canvas.draw()
638
assert (cbar.ax.yaxis.get_ticklabels()[0].get_text() ==
639
'$\\mathdefault{10^{-2}}$')
0 commit comments