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). So to remove this line doesn't change anything
unfortunately.
However, I realise I did a typo in my previous message, the line:
import matplotlib.pyplot as pltfig = plt.figure()
should be:
import matplotlib.pyplot as plt
fig = plt.figure()
On 12 November 2014 17:34, Benjamin Root <ben.r...@ou.edu> wrote:
> 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 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:
>> from mpl_toolkits.mplot3d import axes3d
>> import matplotlib
>> matplotlib.use("agg")
>> import matplotlib.pyplot as pltfig = plt.figure()
>> ax = fig.add_subplot(111, projection='3d')
>> plt.show()
>>
>> 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""
>>
>> I tried different backend:
>> - either they are not installed,
>> - or they send the message "Kernel died, restarting"
>> - or they send no error but no figure is created.
>>
>>
>> Any idea of what is the problem?
>>
>> --
>> --
>> MEGARDON Geoffrey
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
--
--
MEGARDON Geoffrey
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users