msimet / Stile

Stile: the Systematics Tests In Lensing pipeline
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Matplotlib settings #37

Open msimet opened 10 years ago

msimet commented 10 years ago

Do we want to alter the way Matplotlib plots look by default?

There's a set of suggestions here, some of which I use. The ones I'm most likely to use in my own work are A) always using Computer Modern Roman (the LaTeX font) for labels and captions, even when not in TeX mode, B) tight_layout() (which is already used in at least some of our plotting routines), and C) setting the plot aspect ratio to be the golden ratio (which admittedly is a bit silly).

I can see this being annoying for those who have their own favored Matplotlib settings, however, in which case we'll be overriding them.

rmandelb commented 10 years ago

How about making it easy to have these as the default, while at the same time allowing kwargs that can override them?

msimet commented 10 years ago

Um...yes, that would work. :) (I was under the impression some of the settings had to be loaded before you loaded matplotlib.pyplot, just like the backend setting, but that turns out not to be true.)