Virgil,
Glad to hear you got it to work. You are right that you have to set rcParams
before the corresponding element is created (in this case the figure) for the
rcParams to affect that creation.
-Sterling
On Nov 12, 2014, at 4:00PM, Virgil Stokes wrote:
> On 12-Nov-14 22:20, Sterling Smi
Yes, I may forget to tell, but this code is 100% working, it work on other
installations I have. So the problem is not in the code.
It is just that on my current laptop, I don't know why, this code, which
tries to display a 3d plot, leads to a crash.
Note that 2D plots work fine on their side.
I
On 12-Nov-14 22:20, Sterling Smith wrote:
> Virgil,
>
> Presumably you set up some callback function that is called when you click on
> the first figure, and which creates the second figure. Can't you change
> rcParams['toolbar'] in that callback function? Does it not have any effect?
>
> -Ster
Le 13/11/2014 00:13, Geoffrey Mégardon a écrit :
...
But to create the 3D axes, to draw in it, and then to show the
figure, that crashes:
from mpl_toolkits.mplot3d import axes3d
import matplotlib
matplotlib.use("agg")
import matplotlib.pyplot as p
I think you didn't understand my problem.
The line matplotlib.use("whateverbackendwhichcanwork") is here just to test
different backends, in case the 3d plot works on some backend or not on
others.
I tried 4 different backends and I can't plot in 3d with any of them (the
default backend included)
matplotlib.use("agg") will not allow the figure to show. It means to use
the non-interactive backend that is good only for saving to files. Take
that out and you should be fine.
Cheers!
Ben Root
On Wed, Nov 12, 2014 at 5:31 PM, Geoffrey Mégardon <
geoffrey.megar...@gmail.com> wrote:
> Hi,
>
> I
Hi,
I am using the distribution Anaconda 64-bit.
I never got problems with it. But on that new PC on windows 8.1, I can't
plot anything in 3D.
Note that I have an other windows 8.1 installation which works well.
2D plots work fine.
To create a 3D axe works and then to show the figure works fine
This looks neat. I am sorry you haven't gotten a response back yet from
others on the mailing list. What would be really neat is if we could
generalize this to not require TeX/PGF (i.e., find a freetype font that
does this) and make a matplotlib style file.
Cheers!
Ben Root
On Tue, Nov 11, 2014 a
Virgil,
Presumably you set up some callback function that is called when you click on
the first figure, and which creates the second figure. Can't you change
rcParams['toolbar'] in that callback function? Does it not have any effect?
-Sterling
On Nov 12, 2014, at 12:50PM, Virgil Stokes wrote
I would like to be able to control when there is and there is not a
navigation toolbar for figures. For example, suppose I have created a
figure in which I do not wish to have a toolbar. I have used the
following statement for this:|
mpl.rcParams['toolbar']='None'|
which works fine. This figu
10 matches
Mail list logo