lecture-python-programming icon indicating copy to clipboard operation
lecture-python-programming copied to clipboard

figure sizes need to be reduced

Open jstac opened this issue 5 years ago • 6 comments
trafficstars

Apart from the first one, all the figures on this page are too big: https://python-programming.quantecon.org/about_py.html.

@shlff @Harveyt47 @najuzilu we talked about how to fix this for a long time -- maybe too long, so nothing got done :-)

I suggest we just reduce the size of them using the :scale: argument to the figure directive. Would someone be able to help with this?

jstac avatar Apr 13 '20 23:04 jstac

Hey @jstac is this also to do with the figure size of figures generated by code across the lectures. Or just PNGs, because I remember something similar in #767. I'm uncertain if this overlaps.

Harveyt47 avatar Apr 13 '20 23:04 Harveyt47

This is separate because it just pertains to PNG files, or whatever kinds of files we're loading into the page via .. figure::

@DrDrij at one point said something about how we should use an image manipulation program to change the size of the figures but I think this is unworkable for us. I suggest we just alter the size via :scale:.

jstac avatar Apr 13 '20 23:04 jstac

Thanks, @jstac . Hi mates, we also need to update the second figure (pandas vs matlab) of that lecture (https://python-programming.quantecon.org/about_py.html) to 2020 version.

shlff avatar Apr 14 '20 00:04 shlff

I have utilized :scale: in quantecon-example (see book/docs/). I think it would be easy to copy-paste + minor edits into the actual rST files if @jstac thinks the size dimensions in the book example are what we're aiming.

najuzilu avatar Apr 14 '20 00:04 najuzilu

Yes, that sounds great to me @najuzilu, thanks. We just need to use :scale: and that version of the same material has the right scale numbers.

@shlff yes please!

jstac avatar Apr 14 '20 04:04 jstac

It looks like copy-pasting the scale parameter doesn't necessarily scale them to the same size as in the quantecon-example. I just rendered them locally and played around with the scale parameter until the figures looked right. Posting this here in case it's useful to other people.

najuzilu avatar Apr 17 '20 02:04 najuzilu