Setting defaults that are not accessible via rcParams

Hej,

Being a student of Geophysics, I regularly have to hand in some reports, for
which I'm doing a lot of plotting. I am using a latex-template of my own,
inserting the graphics from pdf.
Now I am looking for a convenient way to set some defaults for the format of
plots I am using. I have created a module to easily set my default values
(square format, normal format, subplot-format, default colors, linestyles
etc.). The problem is, that there are some parameters I need to change with
every single plot command (like the space to annotate the axis in the small
subplots) because they are not accessible via matplotlibrc or rcParams. That
is some tedious work and not very convenient regarding the consistency of my
reports.

So is there for example a way to set sth like

axes([0.125,0.2,0.95-0.125,0.95-0.2])

or alike without the need to repeat it for every single plot?

Thank you very much in advance,

Calle

ยทยทยท

--
View this message in context: http://old.nabble.com/Setting-defaults-that-are-not-accessible-via-rcParams-tp31592659p31592659.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

2011/5/11 calle <kajee@...273...>:

[...]
So is there for example a way to set sth like

axes([0.125,0.2,0.95-0.125,0.95-0.2])

or alike without the need to repeat it for every single plot?

Not that I'm aware of. But in what sense is that worst than repeat
subplot() for every single plot? Yes there are magic numbers there but
subplot also uses magic numbers under the hood, if I'm not wrong.

You can wrap your axes call into another function so at least the
magic numbers are not visible in the higher level code if they are
always the same.

Goyo