Can not display 3D plot !

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

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.megardon@…287…> 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

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.root@…1304…> 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.megardon@…287…> 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

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 , not 8.
Jerzy Karczmarczuk

···

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""

Windows 7

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:

···

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

Does a fresh conda environment help?

···

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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 uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

···

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

···

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

···

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…1896…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

···

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…120…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

···

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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 will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

···

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

···

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…1972…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

So, are there new ideas about this problem?

My case seems quite rare :confused:

···

On 13 November 2014 17:46, Geoffrey Mégardon <geoffrey.megardon@…83…287…> wrote:

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

MEGARDON Geoffrey

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…985…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

I was waiting for the results from using faulthandler. It is very easy to use, and I think it will be very illuminating.

Ben Root

···

On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

So, are there new ideas about this problem?

My case seems quite rare :confused:

On 13 November 2014 17:46, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

MEGARDON Geoffrey

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…1972…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

MEGARDON Geoffrey

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…985…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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 that:

from mpl_toolkits.mplot3d import axes3d
import matplotlib
import matplotlib.pyplot as plt
import faulthandler
import os

print os.getcwd()
#with open("./error-log.txt", “wb”) as f:

faulthandler.enable(f)

faulthandler.enable()

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()

And I don’t get any error, even if it still crashes :slight_smile:

Do you have an idea to make the faulthandler able to catch the errors?

Did you received the Windows error log/traceback I sent you? I think it is the most detailed traceback we have for now.

···

On 15 November 2014 09:50, Benjamin Root <ben.root@…1304…> wrote:

I was waiting for the results from using faulthandler. It is very easy to use, and I think it will be very illuminating.

Ben Root

On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

So, are there new ideas about this problem?

My case seems quite rare :confused:

On 13 November 2014 17:46, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

MEGARDON Geoffrey

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

MEGARDON Geoffrey

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

That’s too bad. Faulthandler is limited on windows systems, but I was hoping it would give us something.

Anyway, I looked at the error log again (I didn’t see anything relevant the first time), and I noticed the following:

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

Two things the caught my eye about this line. First of all, just about everything else appears to be 32-bit, but this might be 64-bit (maybe, I am guessing). Also, (and I am a long time removed from development work on Windows), I don’t recall this directory for stock installs. Did you build any part of your anaconda stack yourself? Or did everything come pre-built through the normal anaconda channels?

Ben Root

···

On Tue, Nov 18, 2014 at 12:04 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I tried that:

from mpl_toolkits.mplot3d import axes3d
import matplotlib
import matplotlib.pyplot as plt
import faulthandler
import os

print os.getcwd()
#with open("./error-log.txt", “wb”) as f:

faulthandler.enable(f)

faulthandler.enable()

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()

And I don’t get any error, even if it still crashes :slight_smile:

Do you have an idea to make the faulthandler able to catch the errors?

Did you received the Windows error log/traceback I sent you? I think it is the most detailed traceback we have for now.

On 15 November 2014 09:50, Benjamin Root <ben.root@…1304…> wrote:

I was waiting for the results from using faulthandler. It is very easy to use, and I think it will be very illuminating.

Ben Root

MEGARDON Geoffrey

On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

So, are there new ideas about this problem?

My case seems quite rare :confused:

On 13 November 2014 17:46, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

MEGARDON Geoffrey

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

MEGARDON Geoffrey

On 13 November 2014 17:05, Benjamin Root <ben.root@…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…83…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…1003…7…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…83…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

Everything came pre-built through the normal anaconda downloading page! :smiley:

For the DLL, it seems at its normal place:
http://ns1.faultwire.net/file_detail/msvcr90.dll*92305.html#

I think there is no solution we can track for now :confused: :confused: :confused:

···

On 18 November 2014 12:16, Benjamin Root <ben.root@…1304…> wrote:

That’s too bad. Faulthandler is limited on windows systems, but I was hoping it would give us something.

Anyway, I looked at the error log again (I didn’t see anything relevant the first time), and I noticed the following:

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

Two things the caught my eye about this line. First of all, just about everything else appears to be 32-bit, but this might be 64-bit (maybe, I am guessing). Also, (and I am a long time removed from development work on Windows), I don’t recall this directory for stock installs. Did you build any part of your anaconda stack yourself? Or did everything come pre-built through the normal anaconda channels?

Ben Root

On Tue, Nov 18, 2014 at 12:04 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I tried that:

from mpl_toolkits.mplot3d import axes3d
import matplotlib
import matplotlib.pyplot as plt
import faulthandler
import os

print os.getcwd()
#with open("./error-log.txt", “wb”) as f:

faulthandler.enable(f)

faulthandler.enable()

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()

And I don’t get any error, even if it still crashes :slight_smile:

Do you have an idea to make the faulthandler able to catch the errors?

Did you received the Windows error log/traceback I sent you? I think it is the most detailed traceback we have for now.

On 15 November 2014 09:50, Benjamin Root <ben.root@…1304…> wrote:

I was waiting for the results from using faulthandler. It is very easy to use, and I think it will be very illuminating.

Ben Root

MEGARDON Geoffrey

On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

So, are there new ideas about this problem?

My case seems quite rare :confused:

On 13 November 2014 17:46, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

sorry to double post,

I don’t know if it is linked but Pycharms complains about Skeleton Generation Problems, among the errors there is one which has matplotlib inside:

Failed modules

Python 2.7.8 (C:\Anaconda\python.exe)

dde

matplotlib._cntr

win32ui

win32uiole

Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available

MEGARDON Geoffrey

On 13 November 2014 17:35, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I will have a look to faulthandler but I never used it before.

To use savefig() leads to the same crash.

The two first examples on this pages work fine: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

The first example from: http://matplotlib.org/basemap/users/examples.html

send back an error telling I do not have a module Basemap:

Traceback (most recent call last):

File “C:\Users\User\Google Drive\Work\tryAxesGrid.py”, line 1, in

from mpl_toolkits.basemap import Basemap

ImportError: No module named basemap

Here the previously cited traceback provided by windows 8.1:

Version=1

EventType=APPCRASH

EventTime=130603719401981342

ReportType=2

Consent=1

UploadTime=130603719404121474

ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b

IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b

NsAppName=python.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=python.exe

Sig[1].Name=Application Version

Sig[1].Value=0.0.0.0

Sig[2].Name=Application Timestamp

Sig[2].Value=53b4679e

Sig[3].Name=Fault Module Name

Sig[3].Value=_dotblas.pyd

Sig[4].Name=Fault Module Version

Sig[4].Value=0.0.0.0

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=545678cb

Sig[6].Name=Exception Code

Sig[6].Value=c000001d

Sig[7].Name=Exception Offset

Sig[7].Value=0000000000324022

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.768.101

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=00a8

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=bca9

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359

UI[2]=C:\Users\User\Anaconda\python.exe

UI[3]=python.exe has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\User\Anaconda\python.exe

LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll

LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL

LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll

LoadedModule[4]=C:\Users\User\Anaconda\python27.dll

LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

LoadedModule[6]=C:\WINDOWS\system32\USER32.dll

LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll

LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll

LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll

LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll

LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll

LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll

LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll

LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll

LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL

LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll

LoadedModule[17]=C:\Users\User\Anaconda\DLLs_hashlib.pyd

LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll

LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll

LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll

LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll

LoadedModule[23]=C:\Users\User\Anaconda\DLLs_socket.pyd

LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll

LoadedModule[25]=C:\WINDOWS\system32\NSI.dll

LoadedModule[26]=C:\Users\User\Anaconda\DLLs_ssl.pyd

LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd

LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd

LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core_dotblas.pyd

LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll

LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd

LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib_compiled_base.pyd

LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd

LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg_umath_linalg.pyd

LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd

LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd

LoadedModule[37]=C:\Users\User\Anaconda\DLLs_ctypes.pyd

LoadedModule[38]=C:\WINDOWS\system32\ole32.dll

LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll

LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_path.pyd

LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll

LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd

LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd

LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_png.pyd

LoadedModule[45]=C:\Users\User\Anaconda\DLLs_tkinter.pyd

LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll

LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll

LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll

LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll

LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL

LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL_imaging.pyd

LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_cntr.pyd

LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_image.pyd

LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_tri.pyd

LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib_qhull.pyd

LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends_backend_agg.pyd

LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd

LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd

LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll

LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd

LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll

LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll

LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV

LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll

LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll

LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll

LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll

LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll

LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=python.exe

AppPath=C:\Users\User\Anaconda\python.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

MEGARDON Geoffrey

On 13 November 2014 17:05, Benjamin Root <ben.root@…83…1304…> wrote:

Yeah, I am at a real loss here. Can you try one of the axes_grid1 examples? Also, how about the basemap examples? Those are both mpl_toolkit packages as well and might behave similarly. Also, it would be interesting to figure out at exactly which step the failure happens. There is a package called “faulthandler” that is really useful for that: http://faulthandler.readthedocs.org/en/latest/ It is a bit limited on Windows, but it is better than nothing.

Also, does it fail regardless if you are doing savefig() or show()?

Unfortunately, the “traceback” info you provided doesn’t seem to be encoded properly (or at least, not auto-detectable).

Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

That returns:

C:\Anaconda\lib\site-packages\matplotlib_init_.pyc

C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d_init_.pyc

On 13 November 2014 16:40, Benjamin Root <ben.root@…1304…> wrote:

No OpenGL. The 3d graphics all goes through the same layering engine as the 2D plots. They aren’t real 3D plots but rather what I like to call “2.1D” plots. A single point of a 3D element is chosen to determine how to layer it with everything else. So, it is very easy to get visualization artifacts, especially with polygons.

Do this from python:

import matplotlib

import mpl_toolkits.mplot3d

print matplotlib.file

print mpl_toolkits.mplot3d.file

And tell us what that returns.

Cheers!
Ben Root

MEGARDON Geoffrey

On Thu, Nov 13, 2014 at 3:49 PM, Paul Hobson <pmhobson@…287…> wrote:

No clue about that. BTW, I’ll i was suggestion was to create a new conda enviorment:

conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4

activate mpl3dtest

ipython notebook

[test out 3d plotting]


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

On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

I uninstall and reinstall Anaconda.

That still does not work :confused:

Is it possible there is like OpenGL problem, graphic card driver problem, or something linked to displaying 3d?

On 13 November 2014 13:32, Paul Hobson <pmhobson@…287…> wrote:

Does a fresh conda environment help?

MEGARDON Geoffrey

On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <geoffrey.megardon@…287…> wrote:

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 have an other PC on windows 8.1, and everything work fine on it, I installed the same Anaconda 64-bit version.

So it is something to do with my environment, but it is not linked to the OS itself, and it is linked with 3D displaying only I would say.

Any idea? :slight_smile:


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

On 12 November 2014 18:44, Jerzy Karczmarczuk <jerzy.karczmarczuk@…3937…> wrote:

  Le 13/11/2014 00:13, Geoffrey Mégardon

a écrit :

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

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

                        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""

MEGARDON Geoffrey

According to your Windows log, the faulting module is _dotblas.pyd, which is part of numpy. Does `import numpy;numpy.test()` pass?

Christoph

···

On 11/18/2014 10:39 AM, Geoffrey Mégardon wrote:

Everything came pre-built through the normal anaconda downloading page! :smiley:

For the DLL, it seems at its normal place:
http://ns1.faultwire.net/file_detail/msvcr90.dll*92305.html#

I think there is no solution we can track for now :confused: :confused: :confused:

On 18 November 2014 12:16, Benjamin Root <ben.root@…1304… > <mailto:ben.root@…1304…>> wrote:

    That's too bad. Faulthandler is limited on windows systems, but I
    was hoping it would give us something.

    Anyway, I looked at the error log again (I didn't see anything
    relevant the first time), and I noticed the following:

    LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll

    Two things the caught my eye about this line. First of all, just
    about everything else appears to be 32-bit, but this might be 64-bit
    (maybe, I am guessing). Also, (and I am a long time removed from
    development work on Windows), I don't recall this directory for
    stock installs. Did you build any part of your anaconda stack
    yourself? Or did everything come pre-built through the normal
    anaconda channels?

    Ben Root

    On Tue, Nov 18, 2014 at 12:04 PM, Geoffrey Mégardon > <geoffrey.megardon@…287… <mailto:geoffrey.megardon@…287…>> > wrote:

        I tried that:

        from mpl_toolkits.mplot3d import axes3d
        import matplotlib
        import matplotlib.pyplot as plt
        import faulthandler
        import os

        print os.getcwd()
        #with open("./error-log.txt", "wb") as f:
        # faulthandler.enable(f)
        faulthandler.enable()

        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()

        And I don't get any error, even if it still crashes :slight_smile:

        Do you have an idea to make the faulthandler able to catch the
        errors?
        Did you received the Windows error log/traceback I sent you? I
        think it is the most detailed traceback we have for now.

        On 15 November 2014 09:50, Benjamin Root <ben.root@…1304… > <mailto:ben.root@…1304…>> wrote:

            I was waiting for the results from using faulthandler. It is
            very easy to use, and I think it will be very illuminating.

            Ben Root

            On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon > <geoffrey.megardon@…287… > <mailto:geoffrey.megardon@…287…>> wrote:

                So, are there new ideas about this problem?
                My case seems quite rare :confused:

                On 13 November 2014 17:46, Geoffrey Mégardon > <geoffrey.megardon@…287… > <mailto:geoffrey.megardon@…287…>> wrote:

                    sorry to double post,

                    I don't know if it is linked but Pycharms complains
                    about Skeleton Generation Problems, among the errors
                    there is one which has matplotlib inside:

                    *Failed modules*
                    Python 2.7.8 (C:\Anaconda\python.exe)
                    dde
                    matplotlib._cntr
                    win32ui
                    win32uiole
                    Generation of skeletons for the modules above will
                    be tried again when the modules are updated or a new
                    version of generator is available

                    On 13 November 2014 17:35, Geoffrey Mégardon > <geoffrey.megardon@…287… > <mailto:geoffrey.megardon@…287…>> wrote:

                        I will have a look to faulthandler but I never
                        used it before.

                        To use savefig() leads to the same crash.

                        The two first examples on this pages work fine:
                        http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html

                        The first example from:
                        http://matplotlib.org/basemap/users/examples.html
                        send back an error telling I do not have a
                        module Basemap:
                        Traceback (most recent call last):
                           File "C:\Users\User\Google
                        Drive\Work\tryAxesGrid.py", line 1, in <module>
                             from mpl_toolkits.basemap import Basemap
                        ImportError: No module named basemap

                        Here the previously cited traceback provided by
                        windows 8.1:

                        Version=1
                        EventType=APPCRASH
                        EventTime=130603719401981342
                        ReportType=2
                        Consent=1
                        UploadTime=130603719404121474
                        ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b
                        IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b
                        NsAppName=python.exe
                        Response.type=4
                        Sig[0].Name=Application Name
                        Sig[0].Value=python.exe
                        Sig[1].Name=Application Version
                        Sig[1].Value=0.0.0.0
                        Sig[2].Name=Application Timestamp
                        Sig[2].Value=53b4679e
                        Sig[3].Name=Fault Module Name
                        Sig[3].Value=_dotblas.pyd
                        Sig[4].Name=Fault Module Version
                        Sig[4].Value=0.0.0.0
                        Sig[5].Name=Fault Module Timestamp
                        Sig[5].Value=545678cb
                        Sig[6].Name=Exception Code
                        Sig[6].Value=c000001d
                        Sig[7].Name=Exception Offset
                        Sig[7].Value=0000000000324022
                        DynamicSig[1].Name=OS Version
                        DynamicSig[1].Value=6.3.9600.2.0.0.768.101
                        DynamicSig[2].Name=Locale ID
                        DynamicSig[2].Value=2057
                        DynamicSig[22].Name=Additional Information 1
                        DynamicSig[22].Value=00a8
                        DynamicSig[23].Name=Additional Information 2
                        DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2
                        DynamicSig[24].Name=Additional Information 3
                        DynamicSig[24].Value=bca9
                        DynamicSig[25].Name=Additional Information 4
                        DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359
                        UI[2]=C:\Users\User\Anaconda\python.exe
                        UI[3]=python.exe has stopped working
                        UI[4]=Windows can check online for a solution to
                        the problem.
                        UI[5]=Check online for a solution and close the
                        program
                        UI[6]=Check online for a solution later and
                        close the program
                        UI[7]=Close the program
                        LoadedModule[0]=C:\Users\User\Anaconda\python.exe
                        LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
                        LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL
                        LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll
                        LoadedModule[4]=C:\Users\User\Anaconda\python27.dll
                        LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll
                        LoadedModule[6]=C:\WINDOWS\system32\USER32.dll
                        LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll
                        LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll
                        LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll
                        LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll
                        LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll
                        LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll
                        LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll
                        LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll
                        LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL
                        LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll
                        LoadedModule[17]=C:\Users\User\Anaconda\DLLs\_hashlib.pyd
                        LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll
                        LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll
                        LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll
                        LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
                        LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll
                        LoadedModule[23]=C:\Users\User\Anaconda\DLLs\_socket.pyd
                        LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll
                        LoadedModule[25]=C:\WINDOWS\system32\NSI.dll
                        LoadedModule[26]=C:\Users\User\Anaconda\DLLs\_ssl.pyd
                        LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd
                        LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd
                        LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\_dotblas.pyd
                        LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll
                        LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd
                        LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib\_compiled_base.pyd
                        LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd
                        LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\_umath_linalg.pyd
                        LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd
                        LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd
                        LoadedModule[37]=C:\Users\User\Anaconda\DLLs\_ctypes.pyd
                        LoadedModule[38]=C:\WINDOWS\system32\ole32.dll
                        LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll
                        LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_path.pyd
                        LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll
                        LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd
                        LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd
                        LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_png.pyd
                        LoadedModule[45]=C:\Users\User\Anaconda\DLLs\_tkinter.pyd
                        LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll
                        LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll
                        LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll
                        LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll
                        LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL
                        LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL\_imaging.pyd
                        LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_cntr.pyd
                        LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_image.pyd
                        LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_tri.pyd
                        LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_qhull.pyd
                        LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends\_backend_agg.pyd
                        LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd
                        LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd
                        LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll
                        LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd
                        LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll
                        LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll
                        LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
                        LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll
                        LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll
                        LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll
                        LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll
                        LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll
                        LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll
                        FriendlyEventName=Stopped working
                        ConsentKey=APPCRASH
                        AppName=python.exe
                        AppPath=C:\Users\User\Anaconda\python.exe
                        NsPartner=windows
                        NsGroup=windows8
                        ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D

                        On 13 November 2014 17:05, Benjamin Root > <ben.root@…1304… <mailto:ben.root@…1304…>> wrote:

                            Yeah, I am at a real loss here. Can you try
                            one of the axes_grid1 examples? Also, how
                            about the basemap examples? Those are both
                            mpl_toolkit packages as well and might
                            behave similarly. Also, it would be
                            interesting to figure out at exactly which
                            step the failure happens. There is a package
                            called "faulthandler" that is really useful
                            for that:
                            http://faulthandler.readthedocs.org/en/latest/
                            It is a bit limited on Windows, but it is
                            better than nothing.
                            Also, does it fail regardless if you are
                            doing savefig() or show()?

                            Unfortunately, the "traceback" info you
                            provided doesn't seem to be encoded properly
                            (or at least, not auto-detectable).

                            Ben Root

                            On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey > Mégardon <geoffrey.megardon@…287… > <mailto:geoffrey.megardon@…287…>> wrote:

                                That returns:
                                C:\Anaconda\lib\site-packages\matplotlib\__init__.pyc
                                C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d\__init__.pyc

                                On 13 November 2014 16:40, Benjamin Root > <ben.root@…1304… > <mailto:ben.root@…1304…>> wrote:

                                    No OpenGL. The 3d graphics all goes
                                    through the same layering engine as
                                    the 2D plots. They aren't real 3D
                                    plots but rather what I like to call
                                    "2.1D" plots. A single point of a 3D
                                    element is chosen to determine how
                                    to layer it with everything else.
                                    So, it is very easy to get
                                    visualization artifacts, especially
                                    with polygons.

                                    Do this from python:

                                    import matplotlib
                                    import mpl_toolkits.mplot3d
                                    print matplotlib.__file__
                                    print mpl_toolkits.mplot3d.__file__

                                    And tell us what that returns.

                                    Cheers!
                                    Ben Root

                                    On Thu, Nov 13, 2014 at 3:49 PM, > Paul Hobson <pmhobson@…287… > <mailto:pmhobson@…287…>> wrote:

                                        No clue about that. BTW, I'll i
                                        was suggestion was to create a
                                        new conda enviorment:
                                        > conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4
                                        ...
                                        > activate mpl3dtest
                                        > ipython notebook
                                        > [test out 3d plotting]

                                        On Thu, Nov 13, 2014 at 12:44 > PM, Geoffrey Mégardon > <geoffrey.megardon@…287… > <mailto:geoffrey.megardon@…985…>> > wrote:

                                            I uninstall and reinstall
                                            Anaconda.
                                            That still does not work :confused:
                                            Is it possible there is like
                                            OpenGL problem, graphic card
                                            driver problem, or something
                                            linked to displaying 3d?

                                            On 13 November 2014 13:32, > Paul Hobson > <pmhobson@…287… > <mailto:pmhobson@…287…>> > wrote:

                                                Does a fresh conda
                                                environment help?

                                                On Wed, Nov 12, 2014 at
                                                5:38 PM, Geoffrey
                                                Mégardon
                                                <geoffrey.megardon@…1972…
                                                <mailto:geoffrey.megardon@…287…>>
                                                wrote:

                                                    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 have an other PC
                                                    on windows 8.1, and
                                                    everything work fine
                                                    on it, I installed
                                                    the same Anaconda
                                                    64-bit version.

                                                    So it is something
                                                    to do with my
                                                    environment, but it
                                                    is not linked to the
                                                    OS itself, and it is
                                                    linked with 3D
                                                    displaying only I
                                                    would say.

                                                    Any idea? :slight_smile:

                                                    On 12 November 2014
                                                    18:44, Jerzy
                                                    Karczmarczuk
                                                    <jerzy.karczmarczuk@…120…3937…
                                                    <mailto:jerzy.karczmarczuk@…3937…>>
                                                    wrote:

                                                        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

                                                        ------------------------------------------------------------------------------
                                                        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
                                                        <mailto: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@...1867...s.sourceforge.net
                                                    <mailto: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@…2982…e.net
                                        <mailto:Matplotlib-users@…1838…urceforge.net>
                                        https://lists.sourceforge.net/lists/listinfo/matplotlib-users

                                --
                                MEGARDON Geoffrey

                        --
                        MEGARDON Geoffrey

                    --
                    MEGARDON Geoffrey

                --
                MEGARDON Geoffrey

        --
        MEGARDON Geoffrey

--
MEGARDON Geoffrey

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Good eye, Christoph!

Wow, got to love how that crucial piece of information is buried in there! Took me three tries to find it! Now it makes a bit more sense. I would suspect that most of matplotlib does not ever call np.dot() anywhere (at least, not for 2d arrays, I think numpy uses some simple stuff for 1-d cases). However, mplot3d makes heavy use of np.dot() for all of the projection calculations. It would then make sense why mplot3d would appear to be the only part of matplotlib to be affected.

Let us know how the numpy tests goes.

Ben Root

···

On Tue, Nov 18, 2014 at 1:53 PM, Christoph Gohlke <cgohlke@…2143…> wrote:

According to your Windows log, the faulting module is _dotblas.pyd,

which is part of numpy. Does import numpy;numpy.test() pass?

Christoph

On 11/18/2014 10:39 AM, Geoffrey Mégardon wrote:

Everything came pre-built through the normal anaconda downloading page! :smiley:

For the DLL, it seems at its normal place:

http://ns1.faultwire.net/file_detail/msvcr90.dll*92305.html#

I think there is no solution we can track for now :confused: :confused: :confused:

On 18 November 2014 12:16, Benjamin Root <ben.root@…1304…

mailto:ben.root@...1304...> wrote:

That's too bad. Faulthandler is limited on windows systems, but I
was hoping it would give us something.
Anyway, I looked at the error log again (I didn't see anything
relevant the first time), and I noticed the following:
LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll
Two things the caught my eye about this line. First of all, just
about everything else appears to be 32-bit, but this might be 64-bit
(maybe, I am guessing). Also, (and I am a long time removed from
development work on Windows), I don't recall this directory for
stock installs. Did you build any part of your anaconda stack
yourself? Or did everything come pre-built through the normal
anaconda channels?
Ben Root
On Tue, Nov 18, 2014 at 12:04 PM, Geoffrey Mégardon
<geoffrey.megardon@...287... <mailto:geoffrey.megardon@...287...>>
wrote:
    I tried that:
    from mpl_toolkits.mplot3d import axes3d
    import matplotlib
    import matplotlib.pyplot as plt
    import faulthandler
    import os
    print os.getcwd()
    #with open("./error-log.txt", "wb") as f:
    #    faulthandler.enable(f)
    faulthandler.enable()
    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()
    And I don't get any error, even if it still crashes :)
    Do you have an idea to make the faulthandler able to catch the
    errors?
    Did you received the Windows error log/traceback I sent you? I
    think it is the most detailed traceback we have for now.
    On 15 November 2014 09:50, Benjamin Root <ben.root@...1304...
    <mailto:ben.root@...1304...>> wrote:
        I was waiting for the results from using faulthandler. It is
        very easy to use, and I think it will be very illuminating.
        Ben Root
        On Sat, Nov 15, 2014 at 8:50 AM, Geoffrey Mégardon
        <geoffrey.megardon@...287...
        <mailto:geoffrey.megardon@...287...>> wrote:
            So, are there new ideas about this problem?
            My case seems quite rare :/
            On 13 November 2014 17:46, Geoffrey Mégardon
            <geoffrey.megardon@...287...
            <mailto:geoffrey.megardon@...287...>> wrote:
                sorry to double post,
                I don't know if it is linked but Pycharms complains
                about Skeleton Generation Problems, among the errors
                there is one which has matplotlib inside:
                *Failed modules*
                Python 2.7.8 (C:\Anaconda\python.exe)
                dde
                matplotlib._cntr
                win32ui
                win32uiole
                Generation of skeletons for the modules above will
                be tried again when the modules are updated or a new
                version of generator is available
                On 13 November 2014 17:35, Geoffrey Mégardon
                <geoffrey.megardon@...287...
                <mailto:geoffrey.megardon@...287...>> wrote:
                    I will have a look to faulthandler but I never
                    used it before.
                    To use savefig() leads to the same crash.
                    The two first examples on this pages work fine:
                    [http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html](http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html)
                    The first example from:
                    [http://matplotlib.org/basemap/users/examples.html](http://matplotlib.org/basemap/users/examples.html)
                    send back an error telling I do not have a
                    module Basemap:
                    Traceback (most recent call last):
                       File "C:\Users\User\Google
                    Drive\Work\tryAxesGrid.py", line 1, in <module>
                         from mpl_toolkits.basemap import Basemap
                    ImportError: No module named basemap
                    Here the previously cited traceback provided by
                    windows 8.1:
                    Version=1
                    EventType=APPCRASH
                    EventTime=130603719401981342
                    ReportType=2
                    Consent=1
                    UploadTime=130603719404121474
                    ReportIdentifier=4a8084e1-6b57-11e4-bebc-48d22435da2b
                    IntegratorReportIdentifier=4a8084e0-6b57-11e4-bebc-48d22435da2b
                    NsAppName=python.exe
                    Response.type=4
                    Sig[0].Name=Application Name
                    Sig[0].Value=python.exe
                    Sig[1].Name=Application Version
                    Sig[1].Value=0.0.0.0
                    Sig[2].Name=Application Timestamp
                    Sig[2].Value=53b4679e
                    Sig[3].Name=Fault Module Name
                    Sig[3].Value=_dotblas.pyd
                    Sig[4].Name=Fault Module Version
                    Sig[4].Value=0.0.0.0
                    Sig[5].Name=Fault Module Timestamp
                    Sig[5].Value=545678cb
                    Sig[6].Name=Exception Code
                    Sig[6].Value=c000001d
                    Sig[7].Name=Exception Offset
                    Sig[7].Value=0000000000324022
                    DynamicSig[1].Name=OS Version
                    DynamicSig[1].Value=6.3.9600.2.0.0.768.101
                    DynamicSig[2].Name=Locale ID
                    DynamicSig[2].Value=2057
                    DynamicSig[22].Name=Additional Information 1
                    DynamicSig[22].Value=00a8
                    DynamicSig[23].Name=Additional Information 2
                    DynamicSig[23].Value=00a81cae033b06467abfa2fb5dae54f2
                    DynamicSig[24].Name=Additional Information 3
                    DynamicSig[24].Value=bca9
                    DynamicSig[25].Name=Additional Information 4
                    DynamicSig[25].Value=bca99a98a9c8e88898e6500171ba1359
                    UI[2]=C:\Users\User\Anaconda\python.exe
                    UI[3]=python.exe has stopped working
                    UI[4]=Windows can check online for a solution to
                    the problem.
                    UI[5]=Check online for a solution and close the
                    program
                    UI[6]=Check online for a solution later and
                    close the program
                    UI[7]=Close the program
                    LoadedModule[0]=C:\Users\User\Anaconda\python.exe
                    LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
                    LoadedModule[2]=C:\WINDOWS\system32\KERNEL32.DLL
                    LoadedModule[3]=C:\WINDOWS\system32\KERNELBASE.dll
                    LoadedModule[4]=C:\Users\User\Anaconda\python27.dll
                    LoadedModule[5]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCR90.dll
                    LoadedModule[6]=C:\WINDOWS\system32\USER32.dll
                    LoadedModule[7]=C:\WINDOWS\system32\ADVAPI32.dll
                    LoadedModule[8]=C:\WINDOWS\system32\SHELL32.dll
                    LoadedModule[9]=C:\WINDOWS\system32\GDI32.dll
                    LoadedModule[10]=C:\WINDOWS\system32\msvcrt.dll
                    LoadedModule[11]=C:\WINDOWS\SYSTEM32\sechost.dll
                    LoadedModule[12]=C:\WINDOWS\system32\RPCRT4.dll
                    LoadedModule[13]=C:\WINDOWS\SYSTEM32\combase.dll
                    LoadedModule[14]=C:\WINDOWS\system32\SHLWAPI.dll
                    LoadedModule[15]=C:\WINDOWS\system32\IMM32.DLL
                    LoadedModule[16]=C:\WINDOWS\system32\MSCTF.dll
                    LoadedModule[17]=C:\Users\User\Anaconda\DLLs\_hashlib.pyd
                    LoadedModule[18]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll
                    LoadedModule[19]=C:\WINDOWS\system32\rsaenh.dll
                    LoadedModule[20]=C:\WINDOWS\SYSTEM32\bcrypt.dll
                    LoadedModule[21]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
                    LoadedModule[22]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll
                    LoadedModule[23]=C:\Users\User\Anaconda\DLLs\_socket.pyd
                    LoadedModule[24]=C:\WINDOWS\system32\WS2_32.dll
                    LoadedModule[25]=C:\WINDOWS\system32\NSI.dll
                    LoadedModule[26]=C:\Users\User\Anaconda\DLLs\_ssl.pyd
                    LoadedModule[27]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\multiarray.pyd
                    LoadedModule[28]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\umath.pyd
                    LoadedModule[29]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\_dotblas.pyd
                    LoadedModule[30]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\libiomp5md.dll
                    LoadedModule[31]=C:\Users\User\Anaconda\lib\site-packages\numpy\core\scalarmath.pyd
                    LoadedModule[32]=C:\Users\User\Anaconda\lib\site-packages\numpy\lib\_compiled_base.pyd
                    LoadedModule[33]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\lapack_lite.pyd
                    LoadedModule[34]=C:\Users\User\Anaconda\lib\site-packages\numpy\linalg\_umath_linalg.pyd
                    LoadedModule[35]=C:\Users\User\Anaconda\lib\site-packages\numpy\fft\fftpack_lite.pyd
                    LoadedModule[36]=C:\Users\User\Anaconda\lib\site-packages\numpy\random\mtrand.pyd
                    LoadedModule[37]=C:\Users\User\Anaconda\DLLs\_ctypes.pyd
                    LoadedModule[38]=C:\WINDOWS\system32\ole32.dll
                    LoadedModule[39]=C:\WINDOWS\system32\OLEAUT32.dll
                    LoadedModule[40]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_path.pyd
                    LoadedModule[41]=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_08e793bfa83a89b5\MSVCP90.dll
                    LoadedModule[42]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\ft2font.pyd
                    LoadedModule[43]=C:\Users\User\Anaconda\DLLs\unicodedata.pyd
                    LoadedModule[44]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_png.pyd
                    LoadedModule[45]=C:\Users\User\Anaconda\DLLs\_tkinter.pyd
                    LoadedModule[46]=C:\Users\User\Anaconda\DLLs\tcl85.dll
                    LoadedModule[47]=C:\Users\User\Anaconda\DLLs\tk85.dll
                    LoadedModule[48]=C:\WINDOWS\system32\COMDLG32.dll
                    LoadedModule[49]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_34a8918f959016ea\COMCTL32.dll
                    LoadedModule[50]=C:\WINDOWS\SYSTEM32\SHCORE.DLL
                    LoadedModule[51]=C:\Users\User\Anaconda\lib\site-packages\PIL\_imaging.pyd
                    LoadedModule[52]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_cntr.pyd
                    LoadedModule[53]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_image.pyd
                    LoadedModule[54]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_tri.pyd
                    LoadedModule[55]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\_qhull.pyd
                    LoadedModule[56]=C:\Users\User\Anaconda\lib\site-packages\matplotlib\backends\_backend_agg.pyd
                    LoadedModule[57]=C:\Users\User\Anaconda\lib\site-packages\sip.pyd
                    LoadedModule[58]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore.pyd
                    LoadedModule[59]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtCore4.dll
                    LoadedModule[60]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui.pyd
                    LoadedModule[61]=C:\Users\User\Anaconda\lib\site-packages\PyQt4\QtGui4.dll
                    LoadedModule[62]=C:\WINDOWS\SYSTEM32\WINMM.dll
                    LoadedModule[63]=C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
                    LoadedModule[64]=C:\WINDOWS\SYSTEM32\WINMMBASE.dll
                    LoadedModule[65]=C:\WINDOWS\SYSTEM32\cfgmgr32.dll
                    LoadedModule[66]=C:\WINDOWS\SYSTEM32\DEVOBJ.dll
                    LoadedModule[67]=C:\WINDOWS\system32\uxtheme.dll
                    LoadedModule[68]=C:\WINDOWS\system32\dwmapi.dll
                    LoadedModule[69]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll
                    FriendlyEventName=Stopped working
                    ConsentKey=APPCRASH
                    AppName=python.exe
                    AppPath=C:\Users\User\Anaconda\python.exe
                    NsPartner=windows
                    NsGroup=windows8
                    ApplicationIdentity=5B036AF1EC2E20F320DBF28D119DE93D
                    On 13 November 2014 17:05, Benjamin Root
                    <ben.root@...1304... <mailto:ben.root@...1304...>> wrote:
                        Yeah, I am at a real loss here. Can you try
                        one of the axes_grid1 examples? Also, how
                        about the basemap examples? Those are both
                        mpl_toolkit packages as well and might
                        behave similarly. Also, it would be
                        interesting to figure out at exactly which
                        step the failure happens. There is a package
                        called "faulthandler" that is really useful
                        for that:
                        [http://faulthandler.readthedocs.org/en/latest/](http://faulthandler.readthedocs.org/en/latest/)
                        It is a bit limited on Windows, but it is
                        better than nothing.
                        Also, does it fail regardless if you are
                        doing savefig() or show()?
                        Unfortunately, the "traceback" info you
                        provided doesn't seem to be encoded properly
                        (or at least, not auto-detectable).
                        Ben Root
                        On Thu, Nov 13, 2014 at 4:57 PM, Geoffrey
                        Mégardon <geoffrey.megardon@...287...
                        <mailto:geoffrey.megardon@...287...>> wrote:
                            That returns:
                            C:\Anaconda\lib\site-packages\matplotlib\__init__.pyc
                            C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d\__init__.pyc
                            On 13 November 2014 16:40, Benjamin Root
                            <ben.root@...1304...
                            <mailto:ben.root@...1304...>> wrote:
                                No OpenGL. The 3d graphics all goes
                                through the same layering engine as
                                the 2D plots. They aren't real 3D
                                plots but rather what I like to call
                                "2.1D" plots. A single point of a 3D
                                element is chosen to determine how
                                to layer it with everything else.
                                So, it is very easy to get
                                visualization artifacts, especially
                                with polygons.
                                Do this from python:
                                import matplotlib
                                import mpl_toolkits.mplot3d
                                print matplotlib.__file__
                                print mpl_toolkits.mplot3d.__file__
                                And tell us what that returns.
                                Cheers!
                                Ben Root
                                On Thu, Nov 13, 2014 at 3:49 PM,
                                Paul Hobson <pmhobson@...287...
                                <mailto:pmhobson@...287...>> wrote:
                                    No clue about that. BTW, I'll i
                                    was suggestion was to create a
                                    new conda enviorment:
                                    > conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4
                                    ...
                                    > activate mpl3dtest
                                    > ipython notebook
                                    > [test out 3d plotting]
                                    On Thu, Nov 13, 2014 at 12:44
                                    PM, Geoffrey Mégardon
                                    <geoffrey.megardon@...287...
                                    <mailto:geoffrey.megardon@...287...>>
                                    wrote:
                                        I uninstall and reinstall
                                        Anaconda.
                                        That still does not work :/
                                        Is it possible there is like
                                        OpenGL problem, graphic card
                                        driver problem, or something
                                        linked to  displaying 3d?
                                        On 13 November 2014 13:32,
                                        Paul Hobson
                                        <pmhobson@...287...
                                        <mailto:pmhobson@...287...>>
                                        wrote:
                                            Does a fresh conda
                                            environment help?
                                            On Wed, Nov 12, 2014 at
                                            5:38 PM, Geoffrey
                                            Mégardon
                                            <geoffrey.megardon@...287...
                                            <mailto:geoffrey.megardon@...287...>>
                                            wrote:
                                                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 have an other PC
                                                on windows 8.1, and
                                                everything work fine
                                                on it, I installed
                                                the same Anaconda
                                                64-bit version.
                                                So it is something
                                                to do with my
                                                environment, but it
                                                is not linked to the
                                                OS itself, and it is
                                                linked with 3D
                                                displaying only I
                                                would say.
                                                Any idea? :)
                                                On 12 November 2014
                                                18:44, Jerzy
                                                Karczmarczuk
                                                <jerzy.karczmarczuk@...3937...
                                                <mailto:jerzy.karczmarczuk@...3937...>>
                                                wrote:
                                                    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
                                                    ------------------------------------------------------------------------------
                                                    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](http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk)
                                                    _______________________________________________
                                                    Matplotlib-users
                                                    mailing list
                                                    Matplotlib-users@lists.sourceforge.net
                                                    <mailto:Matplotlib-users@lists.sourceforge.net>
                                                    [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](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](http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk)
                                                _______________________________________________
                                                Matplotlib-users
                                                mailing list
                                                Matplotlib-users@lists.sourceforge.net
                                                <mailto:Matplotlib-users@lists.sourceforge.net>
                                                [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](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](http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk)
                                    _______________________________________________
                                    Matplotlib-users mailing list
                                    Matplotlib-users@lists.sourceforge.net
                                    <mailto:Matplotlib-users@lists.sourceforge.net>
                                    [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)
                            --
                            --
                            MEGARDON Geoffrey
                    --
                    --
                    MEGARDON Geoffrey
                --
                --
                MEGARDON Geoffrey
            --
            --
            MEGARDON Geoffrey
    --
    --
    MEGARDON Geoffrey

MEGARDON Geoffrey


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

from Actuate! Instantly Supercharge Your Business Reports and Dashboards

with Interactivity, Sharing, Native Excel Exports, App Integration & more

Get technology previously reserved for billion-dollar corporations, FREE

http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

from Actuate! Instantly Supercharge Your Business Reports and Dashboards

with Interactivity, Sharing, Native Excel Exports, App Integration & more

Get technology previously reserved for billion-dollar corporations, FREE

http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users