This is from the matplotlib-users list. A user noticed that he can not change the background color of a 3d plot with arguments to .savefig(). Is this a bug or is it intentional?
---------- Forwarded message ----------
From: Denis Laxalde <dlaxalde@…149…>
Date: Wed, Jun 2, 2010 at 9:42 AM
Subject: Re: [Matplotlib-users] [mplot3d] change axis background color
This is set in axis3d module (class Axis), by _AXINFO.
So far, I haven’t found a way to modify colors/transparency but to edit
the latter file. Is this hard-coded or is there a way to modify this a
Le 02-06-2010, Benjamin Root <ben.root@…553…> a écrit :
Huh, how about that? I never noticed that before. I wonder if that
is a bug or if it is intentional?
On Tue, Jun 1, 2010 at 5:28 PM, Denis Laxalde > <dlaxalde@…149…> wrote:
Thanks for your answer. Actually, options for savefig seem to only
operate on 2D axes whereas I’m trying to change the color of 3D axes
(x,y,z) which, by default, have a grid with a gray background. I
manage to remove the grid lines but not the background color. (My
initial question was not very clear perhaps…)
Le mardi 01 juin 2010 =E0 16:57 -0500, Benjamin Root a =E9crit :
There are probably other ways, but the one that I know off the top
head is done at the savefig() function. If you want to remove the
background entirely, you can specify the keyword argument
You can change the color using the facecolor keyword argument. You
can specify any color in that argument like you would elsewhere in
On Tue, Jun 1, 2010 at 4:42 PM, Denis Laxalde >> > <dlaxalde@…149…> >> wrote:
Is there a way to change (and maybe remove) the background color
by default) of axis in mplot3d graphics ?
Matplotlib-users mailing list