Which version of Matplotlib are you using exactly? Besides, are you
applying some peculiar style sheet (i.e. calling something like
`plt.style.use(...)` somewhere)? Because I am pretty sure that the
default background color for axes is white (or at least not gray...).
Anyway, if I am correct you should be able to get a white background by
on (each) of your Axes instances. You could also define it once for all
in (each of) your script(s) by putting
plt.rcParams['axes.facecolor'] = "white"
before creating the figure(s)
PS: please note that I think that the Figure instance (i.e. `fig`,
`lafigure`, etc.) have a similar function/attribute to set the
background color at the figure level.
On 12/13/2017 10:52 AM, Vincent Douce Mathoscope wrote:
> i got several answers from some of youn particularyl about differences
> between plt.... and fig....
> i did not have time to understand more deeply all of that
> i spent my time creating the 75 figures of my book
> some examples :
> no i will start understandign better all of that
> i have found how to disable automatic resizing of the figure when for
> example a curve takes too high values in y
> lafigure.axis([xmin,xmax,ymin,ymax]) # permet que si qqch dépasse ça ne
> perturbe rien ; ouf...
> now, i have too questions :
> - how can i avoid the grey color of the figure ? i would like it to be blank
> the second one in an other mail...
> Vincent Douce
> :=: Mathoscope :=:
> http://mathoscope.xyz > 06°13°11°07°26
> Bagnères de Bigorre 65200
> Matplotlib-users mailing list
> [hidden email] > https://mail.python.org/mailman/listinfo/matplotlib-users >