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

Resolution of density scatter plots #42

Closed
ayylemao opened this issue Jun 16, 2021 · 1 comment
Closed

Resolution of density scatter plots #42

ayylemao opened this issue Jun 16, 2021 · 1 comment
Labels
user question/help Issues regarding questions or help requests

Comments

@ayylemao
Copy link

ayylemao commented Jun 16, 2021

Is there an option to keep the original scatter resolution obtainable without setting the plt style to 'science'?

Plot without science style disabled, high resolution in the scatter density plot
-Plot without science style disabled, high resolution in the scatter density plot
Same plot with science style enabled, notice low resolution in scatter density plot, especialy visible in top left corner region.
-Same plot with science style enabled, notice low resolution in scatter density plot, especialy visible in top left corner region.

Options Used for plotting:
plt.style.use(['science','ieee', 'scatter'])

@garrettj403
Copy link
Owner

Hi @ayylemao

Nothing that I know of in the science style should cause this... if you like, you can add the different parameters to the top of your Python script and try commenting/uncommenting to find the culprit:

import matplotlib as mpl
from cycler import cycler

mpl.rcParams['axes.prop_cycle'] = cycler(color=['0C5DA5', '00B945', 'FF9500', 'FF2C00', '845B97', '474747', '9e9e9e'])

mpl.rcParams['figure.figsize'] = (3.5, 2.625)

# etc

Also try saving with different figure sizes and different files types (png vs jpg vs pdf). You can also try disabling Latex using the no-latex style to see if that changes anything.

@echedey-ls echedey-ls added the user question/help Issues regarding questions or help requests label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user question/help Issues regarding questions or help requests
Projects
None yet
Development

No branches or pull requests

3 participants