|
From: Jerzy K. <jer...@un...> - 2014-11-12 23:45:01
|
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 plt
>
> fig = plt.figure()
> ax = fig.add_subplot(111, projection='3d')
> X, Y, Z = axes3d.get_test_data(0.05)
> cset = ax.contour(X, Y, Z)
> ax.clabel(cset, fontsize=9, inline=1)
>
> plt.show()
>
>
> Basically on iPython QT console I would get an error like:
> ""Kernel died, restarting""
>
Perhaps it is your environment, not Matplotlib.
A copy-paste of this program run without problems on my system.
Anaconda 64 bits, IPython console (within Spyder).
But *Windows 7*, not 8.
Jerzy Karczmarczuk
|