-
Notifications
You must be signed in to change notification settings - Fork 133
Fix issue #594 related to the fontsize parameter in plot
#596
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
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #596 +/- ##
=======================================
Coverage 81.18% 81.19%
=======================================
Files 195 195
Lines 17795 17805 +10
Branches 2377 2378 +1
=======================================
+ Hits 14447 14456 +9
- Misses 2546 2547 +1
Partials 802 802 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the correction! Now the config_matplotlib sets the font.size to 17, when it was set to 9 or 12 before. Have you checked that it still looks good ? thanks
Moreover, I am wondering if there is a possibility to call config_matplotlib() in the setup.py file so that all the documentation is run with these options, rather than having it in every example file
|
Hi Sam, thanks for your feedback, I did not think about the documentation, I'll check it. |
Sorry I mean the conf.py file |
… available. All tensors in the example are on the cpu, so if the system has an available GPU the example breaks and the associated doc can't be generated.
…ilable, mix up between cpu and cuda.
… lines containing \text{} compile correctly
…in plot parameters
So indeed it was not looking good with fontsize 17. Now it's supposed to be set at 9 again in the examples.
I did that at the top of the The default fontsize is back to 17 except when generating the doc examples, then the fontsize is 9. |
…nfig_matplotlib`` When using seaborn, fontsize had again no effect on the fontsize of the titles, but only on suptitles. Now one can use seaborn and still control the fontsize of the titles.
|
I built the doc locally and checked that everything looks ok. |
samuro95
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added new comments with the new changes.
|
We just updated the preview docs for pr. Can your merge with deepinv/main to generate the preview doc @Tmodrzyk ? Thanks! |
|
@mh-nguyen712 It seems I'm up to date with main, I'm not sure about what I should do ? |
|
Sorry for this bug. We just fixed it @Tmodrzyk . Can you merge with main and push again, please? The generated docs then can be found in the Actions. Thanks! |
…RUNet has a fixed number of scales. (deepinv#603)
* remove circle ci + modify docs push * hai comments + contributing guidelines * fix yaml * edit if message exists * yaml refix * prpreview cleanup * try sth * fix * fix again * fix * try sth 2 * fix again * try * and now * ahhh * add permission * fix link * fix link * move to end * add tip
* add size requirement for pretrained diffunet * Update deepinv/models/diffunet.py * Update deepinv/models/diffunet.py * Apply suggestions from code review * black trailing whitespaces * cosmit forward diffusion
* download url of built doc * syntax * comment artifact * comment not working * simple solution * update contrib guide * rm workflow * changes
|
I've just merged from main to remove existing changes from this PR |
Andrewwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
Looking at the docs generated by the CI, it seems the fontsize is back at 17 for some reasons. I'll double check locally. |
My previous solution for the global fontsize was still overwritten by new calls to ``setup_matplotlib``
|
Now the fontsize works as expected: 17 by default, |
|
@Andrewwango @samuro95 I think I'm done with this PR, let me know if there's any issue. :) |
Andrewwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
jscanvic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jscanvic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for fixing that!


The
fontsizeparameter in plot has no effect (Issue #594). The fix was very simple, thesizeparameter in some matplotlib function calls was overwriting theconfig_matplotlibcall.python3 -m pytest deepinv/testsruns successfully.black .runs successfully.make htmlruns successfully (in thedocs/directory).