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
Thank you for providing this package. I was trying to plot a biplot with your other package, pca, and was having the hardest time figuring out why my matplotlib rcParams were not coming into effect. Not only was the biplot not coming out the way I wanted, when I added it to my figure, it would also modify the other subplots in the figure.
I would like to suggest either removing this statement and finding an alternative way to set the font properties, or at least adding a warning to other users that may run into similar problems (not sure if verbose mode would account for that?)
I'd be happy to submit a PR with proposed changes, if you would welcome that.
Thank you!
Vini
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. If there is another manner to do this, and keeping the results the same, that would be an option. I'am interested to see/test your solution.
vinisalazar
added a commit
to vinisalazar/scatterd
that referenced
this issue
May 9, 2024
- In function _set_font_properties, use matplotlib.rc_context()
This resets the rcParams upon leaving the context body, which prevents the parameters set here
from interfering with the rest of the figure.
Hi,
Thank you for providing this package. I was trying to plot a biplot with your other package,
pca
, and was having the hardest time figuring out why my matplotlibrcParams
were not coming into effect. Not only was the biplot not coming out the way I wanted, when I added it to my figure, it would also modify the other subplots in the figure.Turns out it was due to this line: https://github.com/erdogant/scatterd/blob/cdeacf33fdcff3459a7d14959edab2d825fd4026/scatterd/scatterd.py#L269C1-L270C1
I would like to suggest either removing this statement and finding an alternative way to set the font properties, or at least adding a warning to other users that may run into similar problems (not sure if verbose mode would account for that?)
I'd be happy to submit a PR with proposed changes, if you would welcome that.
Thank you!
Vini
The text was updated successfully, but these errors were encountered: