garrettj403 / SciencePlots

Matplotlib styles for scientific plotting
MIT License
6.96k stars 700 forks source link

Is it possible to get a style for subplots? #116

Closed alexlib closed 4 months ago

alexlib commented 4 months ago

The style looks great for a single axis plot, thanks. However, what shall be done for the subplots figure - to increase the figure size double in one direction?

echedey-ls commented 4 months ago

Set the figure size after appying the style. The Matplotlib documentation should have enough information on it; if not, someone at stackoverflow surely has had the same question.

SciencePlots' science style only sets a default size, you can change that afterwards.


From: Alex Liberzon @.> Sent: Sunday, April 21, 2024 7:35:53 PM To: garrettj403/SciencePlots @.> Cc: Subscribed @.***> Subject: [garrettj403/SciencePlots] Is it possible to get a style for subplots? (Issue #116)

The style looks great for a single axis plot, thanks. However, what shall be done for the subplots figure - to increase the figure size double in one direction?

— Reply to this email directly, view it on GitHubhttps://github.com/garrettj403/SciencePlots/issues/116, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATDJ6YCN4L42U4TL77F5BWTY6P2HTAVCNFSM6AAAAABGRROYX6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TKMJYG42DMMQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

alexlib commented 4 months ago

What about the font size for multiple subplots figures?

echedey-ls commented 4 months ago

Please, read Matplotlib's documentation or find tutorials on the internet. These issues have nothing to do with SciencePlots.

https://matplotlib.org/stable/api/text_api.html#matplotlib.text.Text.set_fontsize

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.text.html

Use the kwarg fontsize