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
Right now figure sizes are all over the shop, without any common rule.
I suggest that, for any standard figure, we remove the figsize=(x,y) argument and use the default size instead.
Then we can figure out the best way to set the default size.
For nonstandard figures, such as those with multiple subplots, we should treat them individually, just by looking at them, but with the default size as a reference point.
Note that attention needs to be paid to the PDF as well as the web version.
If you are tackling this as an RA, please discuss with @mmcky. He will have ideas on how we can control the default figure size globally.
Good morning, @jstac . Given your advice on setting the default size, I discuss it with @AakashGfude and Chase. We figured out there are two different ways to set default figure size globally:
The first is to set the default figure size in our jupinx builder. With this way, we can set the default figure size for all standard figures across all lectures.
The second way is to set the default figure size by using a function rc('figure', figsize=(x, y)) from the library matplotlib in the front import section of every lecture. With this way, we can only set the default figure size for one lecture, but it is more flexible. (See an example lecture with this setting, here) We can experiment it to find an appropriate figure size for all standard figures.
Which method do you prefer?
PS. If you prefer the first method, then we would like to discuss it more with @mmcky .
Activity
shlff commentedon Feb 20, 2020
Good morning, @jstac . Given your advice on setting the default size, I discuss it with @AakashGfude and Chase. We figured out there are two different ways to set default figure size globally:
jupinx builder. With this way, we can set the default figure size for allstandardfigures across all lectures.rc('figure', figsize=(x, y))from the librarymatplotlibin the frontimportsection of every lecture. With this way, we can only set the default figure size for one lecture, but it is more flexible. (See an example lecture with this setting, here) We can experiment it to find an appropriate figure size for allstandardfigures.Which method do you prefer?
PS. If you prefer the first method, then we would like to discuss it more with @mmcky .
AakashGfude commentedon Feb 22, 2020
@shlff @mmcky @jstac , one natural and easy place to set the default image size is in HTML and latex templates.
Harveyt47 commentedon Feb 28, 2020
@shlff @jstac @AakashGfude
Here is the code which can globally change the figsize and the font size for plots at the start of each lecture
shlff commentedon Feb 29, 2020
Thanks for your good proposal, @Harveyt47 .
Yours is related to
method 2I mentioned above. Now, after a discussion about pro and con, we decide to implementmethod 1.mmcky commentedon Nov 17, 2022
I think this can be closed as implemented across many pages. We also have the following in the
manualhttps://manual.quantecon.org/writing/styleguide.html#figure-sizes