How can I change figure size?
See original GitHub issueIf I try to set the figure size before, it creates the plot on figure 2, if I set the figure size on figure 2 to creates the plot on figure 3, etc
If this doesn’t work:
plt.figure(num=1, figsize=(16, 10))
How can I change the figure size of the ggplot chart?
Issue Analytics
- State:
- Created 10 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How do I change the size of figures drawn with Matplotlib?
The figsize tuple accepts inches, so if you want to set it in centimetres you have to divide them by 2.54. Have a...
Read more >Change Figure Size in Matplotlib - Stack Abuse
First off, the easiest way to change the size of a figure is to use the figsize argument. You can use this argument...
Read more >Change plot size in Matplotlib - Python - GeeksforGeeks
figsize() takes two parameters- width and height (in inches). By default the values for width and height are 6.4 and 4.8 respectively. Syntax:....
Read more >How to Change Plot and Figure Size in Matplotlib - Datagy
One of the simplest and most expressive ways of changing the plot size in Matplotlib is to use the figsize= argument. As the...
Read more >How To Change The Size Of Figures In Matplotlib
The first option you have is to call matplotlib.pyplot.figure that is used to create a new figure or activate an existing one. The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Right now you could do this (all code without testing it …):
Be aware that every usage of
theme_gray()
ortheme_bw()
will overwrite the mpl.rcparams again, so if you want to use these themes explicitly, you need to do it like this:Note that this hack is changed in the “Theme as contextmanager” PR #75, so if that’s merged you could do this:
There is also a
ggsave()
, but right now this doesn’t take a size parameter (I opened #96 for this)Another solution, if you don’t want to alter matplotlib’s configuration: