You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a lot of things get updated when rc loads the fontsize from file, which can overwrite the setting of labelsize.
If the file stores the keys in a different order:
Thanks for the report. Note the reason font.size also updates all those other font settings is related to #212. When fontsize is passed to ax.format() we have to re-apply the font scalings like 'medium' and 'large' now that they are derived from a different base font.size. I guess something about the order of application is messing this up.
This is fixed by 6ea48d5. The issue was that in the proplotrc file, font.size came after label.size. The internal implementation of _load_file caused the font.size setting to overwrite your label.size with the default value.
Activity
syrte commentedon Jan 29, 2022
The problem can be located to
pplt.rc._load_file.syrte commentedon Jan 29, 2022
It seems that a lot of things get updated when rc loads the fontsize from file, which can overwrite the setting of labelsize.
If the file stores the keys in a different order:
Then the labelsize setting is ensured to use the file value.
I will be satisfied with the above workaround for now. If I got time, I may dig a bit more.
lukelbd commentedon Jan 30, 2022
Thanks for the report. Note the reason
font.sizealso updates all those other font settings is related to #212. Whenfontsizeis passed toax.format()we have to re-apply the font scalings like'medium'and'large'now that they are derived from a different basefont.size. I guess something about the order of application is messing this up.lukelbd commentedon Jan 30, 2022
This is fixed by 6ea48d5. The issue was that in the
proplotrcfile,font.sizecame afterlabel.size. The internal implementation of_load_filecaused thefont.sizesetting to overwrite yourlabel.sizewith the default value.Now your example
correctly prints
(10.000000000000002, 'med-large', 'med-large').syrte commentedon Jan 30, 2022
Many thanks for the quick fix!!!