Skip to content
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

Fixes for matplotlib 3.5 and simplify maintenance of RangeWidget #2922

Merged
merged 8 commits into from
Apr 14, 2022

Conversation

ericpre
Copy link
Member

@ericpre ericpre commented Apr 7, 2022

Progress of the PR

  • Deprecation fixes for matplotlib 3.5,
  • simplify maintenance of RangeWidget
    • remove ModifiableSpanSelector, now that the features we need are implemented in matplotlib,
    • Keep a copy of SpanSelector to support older version of matplotlib
  • update baseline image for plotting test,
  • make the change patch attribute of widgets a property,
  • [n/a] update docstring (if appropriate),
  • [n/a] update user guide (if appropriate),
  • add an changelog entry in the upcoming_changes folder (see upcoming_changes/README.rst),
  • Check formatting changelog entry in the readthedocs doc build of this PR (link in github checks)
  • add tests,
  • ready for review.

…ht axis was hidden behind the first axis with non-blitting backend; with blitting, the curve are animated and draw above the background in any case
…lib 3.5. However, we still need to use a local copy of the matplotlib selector to support older version of matplotlib and the `snap_value` feature is missing in matplotlib 3.5
@ericpre ericpre added this to the v1.7 milestone Apr 7, 2022
@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #2922 (7244e87) into RELEASE_next_minor (6db1f80) will increase coverage by 0.52%.
The diff coverage is 92.57%.

@@                  Coverage Diff                   @@
##           RELEASE_next_minor    #2922      +/-   ##
======================================================
+ Coverage               80.08%   80.60%   +0.52%     
======================================================
  Files                     209      209              
  Lines                   32580    32294     -286     
  Branches                 7334     7265      -69     
======================================================
- Hits                    26093    26032      -61     
+ Misses                   4736     4513     -223     
+ Partials                 1751     1749       -2     
Impacted Files Coverage Δ
hyperspy/_signals/signal1d.py 78.62% <ø> (+0.76%) ⬆️
hyperspy/misc/array_tools.py 82.35% <ø> (-0.23%) ⬇️
hyperspy/roi.py 84.08% <71.42%> (-0.13%) ⬇️
hyperspy/drawing/image.py 73.94% <83.33%> (+0.11%) ⬆️
hyperspy/signal_tools.py 73.26% <90.14%> (+3.74%) ⬆️
hyperspy/drawing/_widgets/range.py 89.56% <96.87%> (+38.29%) ⬆️
hyperspy/drawing/_widgets/circle.py 72.72% <100.00%> (-1.66%) ⬇️
hyperspy/drawing/_widgets/horizontal_line.py 86.66% <100.00%> (ø)
hyperspy/drawing/_widgets/label.py 64.91% <100.00%> (ø)
hyperspy/drawing/_widgets/line2d.py 52.73% <100.00%> (-1.57%) ⬇️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6db1f80...7244e87. Read the comment docs.

hyperspy/signal_tools.py Show resolved Hide resolved
@jlaehne
Copy link
Contributor

jlaehne commented Apr 14, 2022

thanks for the significant increase in coverage!

@jlaehne jlaehne merged commit 0469916 into hyperspy:RELEASE_next_minor Apr 14, 2022
jlaehne added a commit to hyperspy/hyperspy_gui_traitsui that referenced this pull request Apr 16, 2022
@ericpre ericpre deleted the tidy_up_range_widget branch April 18, 2022 19:16
@ericpre ericpre mentioned this pull request Apr 20, 2022
4 tasks
@ericpre ericpre mentioned this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants