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

Refactor how we handle aspect ratios to not depend on Matplotlib #1894

Merged
merged 16 commits into from
Nov 13, 2018

Conversation

astrofrog
Copy link
Member

How Matplotlib deals with aspect ratio can be quite buggy and hard to control, so it would be easier to deal with it ourselves, with the bonus that if this is implemented in a generic way it could be used in glue-jupyter too.

This is currently a work in progress from a few months ago, so I need to remind myself of what worked/what didn't work, then make sure we add extensive tests!

…thon to use the inline backend, but the inline backend overrode some rcParams and this caused issues with tests or when restoring sessions (the appearance of the plots changed). We now make sure the default backend is set to Agg.
@codecov
Copy link

codecov bot commented Nov 12, 2018

Codecov Report

Merging #1894 into master will increase coverage by 0.05%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1894      +/-   ##
==========================================
+ Coverage   85.51%   85.56%   +0.05%     
==========================================
  Files         235      235              
  Lines       20899    20962      +63     
==========================================
+ Hits        17871    17937      +66     
+ Misses       3028     3025       -3
Impacted Files Coverage Δ
glue/viewers/image/state.py 91.48% <100%> (+0.06%) ⬆️
glue/app/qt/application.py 78.44% <100%> (+0.54%) ⬆️
glue/viewers/image/viewer.py 89.86% <100%> (-0.52%) ⬇️
glue/core/data.py 89.12% <100%> (+0.03%) ⬆️
glue/viewers/scatter/state.py 91.82% <100%> (+0.16%) ⬆️
glue/viewers/histogram/state.py 94.32% <100%> (+0.08%) ⬆️
glue/_mpl_backend.py 100% <100%> (ø) ⬆️
glue/viewers/matplotlib/viewer.py 95.27% <89.13%> (+0.31%) ⬆️
glue/viewers/matplotlib/state.py 93.91% <98%> (+2.86%) ⬆️

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 330d68b...347f607. Read the comment docs.

@astrofrog astrofrog modified the milestones: v0.15.0, v0.14.0 Nov 13, 2018
…dependent (because of e.g. slightly different toolbar sizes)
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.

1 participant