Repository navigation
Closed
Labels
status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action
Description
Some are producing ever-so-slightly nondeterministic results, and others demonstrate a Python 2 vs. 3 issue. While #5307 got most of these stuff, these were punted on because obvious solutions haven't yet been found.
- test_axes_grid1:test_twin_axes_empty_and_removed
- test_axes:test_boxplot
- test_axes:test_boxplot_rc_parameters
- test_axes:test_specgram_freqs
- test_axes:test_specgram_noise
- test_axes:test_specgram_magnitude_freqs
- test_axes:test_hist_steplog
appveyor/windows: as part of #5922 added or increased tolerance for failures on:
- matplotlib.tests.test_axes.test_specgram_freqs.test (RMS 0.042) (x64,35)
- matplotlib.tests.test_axes.test_specgram_freqs.test (RMS 0.042) (x64,35)
- matplotlib.tests.test_axes.test_specgram_magnitude_freqs.test (RMS 0.042) (x64,35)
- matplotlib.tests.test_axes.test_specgram_magnitude_freqs.test (RMS 0.042) (x64,35)
-> currently set to 0.03, set tolerance to 0.05 on windows
- matplotlib.tests.test_patheffects.test_collection.test (RMS 0.006) (x64,35)
- matplotlib.tests.test_patheffects.test_collection.test (RMS 0.008) (x86,27)
- matplotlib.tests.test_patheffects.test_collection.test (RMS 0.012) (x64,27)
- matplotlib.tests.test_patheffects.test_collection.test (RMS 0.012) (x64,34)
This has a black diff, so up the tolerance on windows to 0.013
- matplotlib.tests.test_patches.test_wedge_range.test (RMS 0.059) (x64,27)
- matplotlib.tests.test_patches.test_wedge_range.test (RMS 0.059) (x64,34)
- matplotlib.tests.test_patches.test_wedge_range.test (RMS 0.059) (x86,27)
This looks actually interesting: it seems that only the middle figure in the last row is different
- matplotlib.tests.test_axes.test_specgram_angle_freqs.test (RMS 0.002) (x86,27)
Also looks black, but only on py27/x86...?
- matplotlib.tests.test_triangulation.test_tri_smooth_gradient.test (RMS 0.014) (x64,35)
Metadata
Metadata
Assignees
Labels
status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action
Activity
jenshnielsen commentedon Dec 23, 2015
I am seeing the following failures with tiny difference when running locally on my mac with the local freetype.
Some of them are above so it may just tweaking the values
jenshnielsen commentedon Dec 23, 2015
I added a PR #5734 that adjusts the tolerance slight so that the spectrogram tests passes for me
jenshnielsen commentedon Dec 24, 2015
In addition it seems like
test_collections.test__EventCollection__set_linestylesometimes fails on Travis with a tiny RMS diffOne example this happens even in the python 3.5 job which does not use multiprocessing so it's probably not related to that
jenshnielsen commentedon Dec 24, 2015
Sorry I restarted the job so the log is gone
mdboom commentedon Dec 29, 2015
I've also seen the
*specgram*issues on #5718, and I was thinking of the same solution. I think the differences come actually different versions of Numpy's spec code, not from matplotlib itself. So I think this is reasonable unless we want to peg to a particular version of Numpy for testing (I'd like to avoid that).I think the other tests might have a different root cause -- elsewhere I've seen this because a dictionary is being iterated over resulting in unpredictable ordering of drawing. Haven't looked into this deeply enough to determine if that's what's going on here, though.
jankatins commentedon Feb 1, 2016
See also #5922 for additional test failures on windows for which the tolerance had to be changed.
jankatins commentedon Feb 2, 2016
Added the test failures on appveyor/windows from #5922 directly to the todo list in the first comment
jkseppan commentedon Jan 4, 2017
Is this just Python 2/3 and versions of Numpy? If so, there would probably be only a few possible correct results for each test case. We could modify the comparison tests to allow several alternatives for the correct result, and compare against each of those with zero tolerance. It would be somewhat more work to update test cases for any other changes, but we could probably just pick the images from failing Travis tests.
dopplershift commentedon Jan 4, 2017
#7573 should have helped deal with 2 vs. 3 issues. IMO from matplotlib's perspective in general, we're doing something wrong if test results depend on 2 vs. 3 independent of versions of other things.
github-actions commentedon Mar 20, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
tacaswell commentedon Mar 20, 2023
I am going to close this as