You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Benjamin R. <ben...@ou...> - 2014-11-18 17:16:55
|
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 <
geo...@gm...> 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...@ou...> 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 <
>> geo...@gm...> wrote:
>>
>>> So, are there new ideas about this problem?
>>> My case seems quite rare :/
>>>
>>> On 13 November 2014 17:46, Geoffrey Mégardon <
>>> geo...@gm...> 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 <
>>>> geo...@gm...> 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...@ou...> 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 <
>>>>>> geo...@gm...> 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...@ou...> 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 <pmh...@gm...>
>>>>>>>> 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 <
>>>>>>>>> geo...@gm...> 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 <pmh...@gm...>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Does a fresh conda environment help?
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <
>>>>>>>>>>> geo...@gm...> 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 <
>>>>>>>>>>>> jer...@un...> 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
>>>>>>>>>>>>> Mat...@li...
>>>>>>>>>>>>> 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
>>>>>>>>>>>> Mat...@li...
>>>>>>>>>>>> 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
>>>>>>>>> Mat...@li...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> MEGARDON Geoffrey
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> MEGARDON Geoffrey
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> MEGARDON Geoffrey
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> MEGARDON Geoffrey
>>>
>>
>>
>
>
> --
> --
> MEGARDON Geoffrey
>
|
|
From: Geoffrey M. <geo...@gm...> - 2014-11-18 17:04:16
|
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...@ou...> 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 <
> geo...@gm...> wrote:
>
>> So, are there new ideas about this problem?
>> My case seems quite rare :/
>>
>> On 13 November 2014 17:46, Geoffrey Mégardon <geo...@gm...
>> > 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 <
>>> geo...@gm...> 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...@ou...> 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 <
>>>>> geo...@gm...> 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...@ou...> 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 <pmh...@gm...>
>>>>>>> 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 <
>>>>>>>> geo...@gm...> 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 <pmh...@gm...> wrote:
>>>>>>>>>
>>>>>>>>>> Does a fresh conda environment help?
>>>>>>>>>>
>>>>>>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <
>>>>>>>>>> geo...@gm...> 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 <
>>>>>>>>>>> jer...@un...> 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
>>>>>>>>>>>> Mat...@li...
>>>>>>>>>>>> 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
>>>>>>>>>>> Mat...@li...
>>>>>>>>>>> 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
>>>>>>>> Mat...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> MEGARDON Geoffrey
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> MEGARDON Geoffrey
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> MEGARDON Geoffrey
>>>
>>
>>
>>
>> --
>> --
>> MEGARDON Geoffrey
>>
>
>
--
--
MEGARDON Geoffrey
|
|
From: zhangtao <tao...@gm...> - 2014-11-18 15:15:25
|
from matplotlib.pylab import *
fig = plt.figure(1)
fig.clf()
data = np.random.random((3,3))
xaxis = np.arange(0,3)
yaxis = np.arange(0,3)
ax1 = fig.add_subplot(211)
im = ax1.imshow(data, interpolation='none')
c = ax1.contour(xaxis, yaxis, data, colors='k')
#----------------
# draw ax1 first, so you can get proper position of ax1
fig.canvas.draw()
point_bl, point_tr = ax1.get_position().get_points() # ax1's bottom-left
and top-right
ax2 = fig.add_subplot(212)
space = 0.45 # space between ax2's bottom left and ax1's bottom left in
percentage
ax2.set_position([point_bl[0], point_bl[1]-space,
point_tr[0] - point_bl[0], point_tr[1] - point_bl[1]])
plt.show()
You can adjust that variable "space" as you need.
If someone has some more easy ways to do this, please let me know.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/aligning-plot-width-with-imshow-contour-width-tp44408p44409.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Ken M. <ma...@gm...> - 2014-11-18 14:07:21
|
Hi List, How can I make a plot have the same width as an image? The image (and contour) have a fixed aspect ratio defined by the data. Now I'd like to plot something under that image, with the same width. I think this is trivial. I think I've done this in the past. But I cannot find the code. Searching online and with experiments I've looked into "sharex", and tried using "extent" and the bbox, ax.transData.inverted(), etc. but I have not had any success, hence my post here. The following code demonstrates the problem. The 2nd axis is wider than the first that contains the image. Thanks, -k. fig = plt.figure(1) fig.clf() data = np.random.random((3,3)) xaxis = np.arange(0,3) yaxis = np.arange(0,3) ax = fig.add_subplot(211) im = ax.imshow(data, interpolation='none') c = ax.contour(xaxis, yaxis, data, colors='k') ax2 = fig.add_subplot(212) |
|
From: Christian A. <ia...@gm...> - 2014-11-16 23:13:11
|
Thanks! I did use geopandas and it seems it is the easiest method of creating a choropleth in Python. Support for displaying a colorbar for noncategorical data is missing so I implemented it but my PR hasn't been merged yet. On Fri, Nov 14, 2014 at 6:07 PM, Benjamin Root <ben...@ou...> wrote: > Sorry for the delay. Here is an example I came across today using geopandas > and pysal: > http://nbviewer.ipython.org/github/geopandas/geopandas/blob/master/examples/choropleths.ipynb > > Cheers! > Ben Root > > On Fri, Oct 24, 2014 at 3:59 PM, Christian Alis <ia...@gm...> wrote: >> >> Hi Ben, >> >> Yes, indeed. I'm referring to a choropleth. :) >> >> Thanks, >> >> Christian >> >> On Oct 24, 2014 8:23 PM, "Benjamin Root" <ben...@ou...> wrote: >>> >>> Do you mean choropleth? http://en.wikipedia.org/wiki/Choropleth_map >>> >>> On Fri, Oct 24, 2014 at 1:18 PM, ianalis <ia...@gm...> wrote: >>>> >>>> I have been creating chloropleth maps in Python by adding patches and/or >>>> polygons in a matplotlib Axes but I'm looking for something easier to >>>> use. >>>> >>>> Ideally, the interface should be similar to how contour maps or >>>> pseudocolor >>>> plots are created where, at the minimum, only one call to a function is >>>> needed to create these plots from data. Colors are automatically >>>> assigned >>>> and normalized based on values. A colorbar can then be added by calling >>>> another function. >>>> >>>> So far, the closest package seems to be geopandas. Is there an another >>>> package that is nearer to what I want? That is, is there a package that >>>> can >>>> make a (basic) chloropleth of values stored as a dictionary, numpy array >>>> or >>>> pandas dataframe in one call? >>>> >>>> I'm willing to contribute code and help develop the chloropleth >>>> capability >>>> of a package since I currently end up creating my own function and >>>> manipulating Axes internals just to create a chloropleth. >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://matplotlib.1069221.n5.nabble.com/Easiest-way-to-create-a-chloropleth-in-Python-tp44195.html >>>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> > |
|
From: Eric F. <ef...@ha...> - 2014-11-16 17:48:38
|
On 2014/11/16, 10:21 AM, j1 wrote: > I have posted this in the user sub forum as well because i'm not sure that it > is a user issue or development issue. > Information about my problem and my code are here > > http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-development-issue-td44392.html > <http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-development-issue-td44392.html> > > Is it possible to assign tick labels/values to extensions? You would have to do it manually; you can put marks and text anywhere you want in a matplotlib figure, but there is no mechanism for adding ticks to the extensions. That's simply not what they are for. They are intended only to indicate a single color to which values outside the vmin-to-vmax range of the norm are assigned. > > If so, how can I do it It looks like you might be able to achieve what you want *without* using extensions, by using a custom colormap and/or norm. You would extend the actual contour levels to include the full range you want "ticked and labeled", but you would use the colormap and/or norm to ensure those beyond a given range are mapped to the appropriate end color(s). Eric |
|
From: j1 <jof...@ho...> - 2014-11-16 15:14:56
|
I am not sure if this is a user issue or a development issue. Using version 1.4.2 My code allows the user to hone in on a specific contour range, by changing the minimum and maximum of the contour and the number of levels. I am using colorbar "extend" to prevent any white patches, as the data may have values outside the contour range. I want the extensions to have tick values but I can't seem to figure out, how to do it? This is my code import numpy as np import matplotlib.pyplot as plt xi = np.array([0., 0.5, 1.0])#xi data yi = np.array([0., 0.5, 1.0])#yi data zi = np.array([[0., 1.0, 2.0],[0., 1.0, 2.0],[-0.1, 1.0, 2.0]])#zi data n=5#number of levels of user specified range umin=0.5#user defined minimum of contour umax=1#user defined maximum of contout u = np.linspace(umin, umax, n)#user specified contour levels cbtics = np.hstack([zi.min(),u,zi.max()])#contour ticks including maximum and minimum of zi plt.contourf(xi, yi, zi, u, cmap=plt.cm.jet,extend='both')#plot contour cbar=plt.colorbar(extendrect='True',extendfrac='auto',spacing='proportional')#plot colorbar print cbar.ax.get_ylim()#show y limits print cbar.ax.get_yticks()#show yticks plt.show() Using the user entered values: ylim are (-0.25, 1.25) but the yticks are: [ 0. 0.2 0.4 0.6 0.8 1. ] range from 0 to 1 I'm guessing that the difference between ylim (-0.25 to 1.25) and yticks (0 to 1) is that I am using extensions, so is there no way to update y ticks to include the extensions so that I can assign labels to the extensions? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-development-issue-tp44392.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Benjamin R. <ben...@ou...> - 2014-11-15 14:51:20
|
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 < geo...@gm...> wrote: > So, are there new ideas about this problem? > My case seems quite rare :/ > > On 13 November 2014 17:46, Geoffrey Mégardon <geo...@gm...> > 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 <geo...@gm... >> > 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...@ou...> 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 < >>>> geo...@gm...> 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...@ou...> 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 <pmh...@gm...> >>>>>> 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 < >>>>>>> geo...@gm...> 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 <pmh...@gm...> wrote: >>>>>>>> >>>>>>>>> Does a fresh conda environment help? >>>>>>>>> >>>>>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < >>>>>>>>> geo...@gm...> 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 < >>>>>>>>>> jer...@un...> 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 >>>>>>>>>>> Mat...@li... >>>>>>>>>>> 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 >>>>>>>>>> Mat...@li... >>>>>>>>>> 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 >>>>>>> Mat...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> MEGARDON Geoffrey >>>>> >>>> >>>> >>> >>> >>> -- >>> -- >>> MEGARDON Geoffrey >>> >> >> >> >> -- >> -- >> MEGARDON Geoffrey >> > > > > -- > -- > MEGARDON Geoffrey > |
|
From: Geoffrey M. <geo...@gm...> - 2014-11-15 13:50:30
|
So, are there new ideas about this problem? My case seems quite rare :/ On 13 November 2014 17:46, Geoffrey Mégardon <geo...@gm...> 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 <geo...@gm...> > 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...@ou...> 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 < >>> geo...@gm...> 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...@ou...> 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 <pmh...@gm...> >>>>> 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 < >>>>>> geo...@gm...> 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 <pmh...@gm...> wrote: >>>>>>> >>>>>>>> Does a fresh conda environment help? >>>>>>>> >>>>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < >>>>>>>> geo...@gm...> 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 < >>>>>>>>> jer...@un...> 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 >>>>>>>>>> Mat...@li... >>>>>>>>>> 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 >>>>>>>>> Mat...@li... >>>>>>>>> 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 >>>>>> Mat...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> -- >>>> MEGARDON Geoffrey >>>> >>> >>> >> >> >> -- >> -- >> MEGARDON Geoffrey >> > > > > -- > -- > MEGARDON Geoffrey > -- -- MEGARDON Geoffrey |
|
From: fcb525 <fc...@al...> - 2014-11-15 11:13:03
|
And it works perfectly, thank you very much! -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-ticklabel-tp44376p44386.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: zhangtao <tao...@gm...> - 2014-11-15 07:37:27
|
In your case don't use colorbar() function, You can add a customized colorbar. See these examples: http://matplotlib.org/examples/api/colorbar_only.html <http://matplotlib.org/examples/api/colorbar_only.html> -- View this message in context: http://matplotlib.1069221.n5.nabble.com/List-of-markers-tp44334p44385.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: zhangtao <tao...@gm...> - 2014-11-15 03:53:32
|
I think that "1e4" is a offset text, and not a part of ax2's yticklabels, so any color or font settings for yticklabels will not affect it. It's seems the offset text only uses matplotlib's default rcParams to draw, so my solution is to change rcParams. Try add these 4 lines before your plot code: import matplotlib as mpl mpl.rcParams['ytick.labelsize']='18' mpl.rcParams['ytick.color']='r' mpl.rcParams['font.sans-serif']='Arial' What you set here will become default settings of matplotlib. For more details of rcParams, check this: http://matplotlib.org/users/customizing.html <http://matplotlib.org/users/customizing.html> I hope this will solve your problems. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-ticklabel-tp44376p44384.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Thomas C. <tca...@gm...> - 2014-11-14 18:14:03
|
Can you provide a reproducible example? There is not really enough here to sort out what is going wrong or why it is going wrong. Ideally the example should be self contained (code + synthetic data). What versions of mpl + numpy + python are you using everywhere? Tom On Fri Nov 14 2014 at 7:25:15 AM Torsten Bronger < br...@ph...> wrote: > Hallöchen! > > I've had a very odd observation today: I call matplotlib 1.3.1 from > Django 1.7 code running on Apache under Ubuntu 14.04. The relevant > code is: > > figure = Figure(frameon=False, figsize=(4, 3)) > canvas = FigureCanvasAgg(figure) > axes = figure.add_subplot(111) > ... > canvas.print_figure(plot_filepath) > > The last command hangs. > > Funny enough, if I run the very same code on Django's testserver, it > works. > > First, I thought of http://stackoverflow.com/questions/22337250 but > this is not the case here. I've really assured that "Agg" is used, > also by providing a proper config file. > > The oddest part is, if I replace in matplotlib/scale.py, line 136, > > return ma.power(10.0, a) / 10.0 > > with > > return np.power(10.0, a) / 10.0 > > it works! > > Can anybody explain this? > > Regards, > Torsten. > > -- > Torsten Bronger Jabber ID: tor...@ja... > or http://bronger-jmp.appspot.com > > > ------------------------------------------------------------ > ------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Benjamin R. <ben...@ou...> - 2014-11-14 18:07:35
|
Sorry for the delay. Here is an example I came across today using geopandas and pysal: http://nbviewer.ipython.org/github/geopandas/geopandas/blob/master/examples/choropleths.ipynb Cheers! Ben Root On Fri, Oct 24, 2014 at 3:59 PM, Christian Alis <ia...@gm...> wrote: > Hi Ben, > > Yes, indeed. I'm referring to a choropleth. :) > > Thanks, > > Christian > On Oct 24, 2014 8:23 PM, "Benjamin Root" <ben...@ou...> wrote: > >> Do you mean choropleth? http://en.wikipedia.org/wiki/Choropleth_map >> >> On Fri, Oct 24, 2014 at 1:18 PM, ianalis <ia...@gm...> wrote: >> >>> I have been creating chloropleth maps in Python by adding patches and/or >>> polygons in a matplotlib Axes but I'm looking for something easier to >>> use. >>> >>> Ideally, the interface should be similar to how contour maps or >>> pseudocolor >>> plots are created where, at the minimum, only one call to a function is >>> needed to create these plots from data. Colors are automatically assigned >>> and normalized based on values. A colorbar can then be added by calling >>> another function. >>> >>> So far, the closest package seems to be geopandas. Is there an another >>> package that is nearer to what I want? That is, is there a package that >>> can >>> make a (basic) chloropleth of values stored as a dictionary, numpy array >>> or >>> pandas dataframe in one call? >>> >>> I'm willing to contribute code and help develop the chloropleth >>> capability >>> of a package since I currently end up creating my own function and >>> manipulating Axes internals just to create a chloropleth. >>> >>> >>> >>> -- >>> View this message in context: >>> http://matplotlib.1069221.n5.nabble.com/Easiest-way-to-create-a-chloropleth-in-Python-tp44195.html >>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> |
|
From: V. A. S. <so...@es...> - 2014-11-14 15:54:38
|
On 14/11/2014 16:02, Thomas Caswell wrote: > The positions are stored in offsets, the array property is the color > mapping. > Thanks a lot! Armando |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:58:15
|
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coordinates of the artist, Just in case my previous mail was confusing. I need the "exact" coordinates of the artist. Armando |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:56:59
|
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coordinates of the > artist, or just the coordinates where the mouse clicked? If it is just > the location of the mouse click, then the "xdata" and "ydata" > attributes should be all you need. > > For picking events, the event object will have an "artist" attribute > that will point to the artist that was "picked". For collection type > artists, there should be an "ind" attribute to the event object that > provides the index into the array held by the collection artist. You > can then index the data contained by the collection object already. > Different collection objects, unfortunately, have slightly different > getters. So, while some might have get_xdata() and get_ydata(), others > might have get_points() or something like that. I never get them > straight in my head. > yes, I know the exact coordinates of the marker. For lines is not a problem (using ind) but for a collection I have not found a built-in way. I have made a print(dir(artist)) and the only thing I found interesting was get_array(), but it gave me back None ... Armando |
|
From: Benjamin R. <ben...@ou...> - 2014-11-14 14:50:14
|
It is possible. Those examples were merely showing different ways to do similar things (and there are more ways to do it, btw). The techniques can be used for different artist types. I guess the important question is, do you need the *exact* coordinates of the artist, or just the coordinates where the mouse clicked? If it is just the location of the mouse click, then the "xdata" and "ydata" attributes should be all you need. For picking events, the event object will have an "artist" attribute that will point to the artist that was "picked". For collection type artists, there should be an "ind" attribute to the event object that provides the index into the array held by the collection artist. You can then index the data contained by the collection object already. Different collection objects, unfortunately, have slightly different getters. So, while some might have get_xdata() and get_ydata(), others might have get_points() or something like that. I never get them straight in my head. Cheers! Ben Root <shameless_plug>There will be some useful examples of this and a deeper explanation in my upcoming book on interactive matplotlib. Stay tuned to this mailing list for announcements</shameless_plug> On Fri, Nov 14, 2014 at 9:03 AM, V. Armando Sole <so...@es...> wrote: > Hello, > > Looking at the picking demo: > > http://matplotlib.org/examples/event_handling/pick_event_demo.html > > I see that one can recover the coordinates from the picked artist in the > case of images, and lines. However, in case 3 of the example (scatter > plot) the x and y data have to be supplied in order to retrieve the > coordinates. Is there a way to recover them from the artist? I got the > (wrong?) feeling that the data must be hidden somewhere ... If that is > not possible I'll have to keep a copy of the data used to generate the > artist, but I would not like to do so. > > Any hint? > > Thanks, > > Armando > > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:03:20
|
Hello, Looking at the picking demo: http://matplotlib.org/examples/event_handling/pick_event_demo.html I see that one can recover the coordinates from the picked artist in the case of images, and lines. However, in case 3 of the example (scatter plot) the x and y data have to be supplied in order to retrieve the coordinates. Is there a way to recover them from the artist? I got the (wrong?) feeling that the data must be hidden somewhere ... If that is not possible I'll have to keep a copy of the data used to generate the artist, but I would not like to do so. Any hint? Thanks, Armando |
|
From: fcb525 <fc...@al...> - 2014-11-14 12:27:10
|
Most of my issues have been answered through previous posts, but this is such
a specific problem, that I can't find the answer anywhere. I'm new to
matplotlib and therefore learning some of the basic things. My code is:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.pylab as plb
import matplotlib.font_manager as font_manager
import numpy as np
#Changing font at once
##font = {'family' : 'monospace',
## 'weight' : 'bold',
## 'size' : 18}
##matplotlib.rc('font', **font)
#Changing font individually
axis_font = {'fontname':'Arial', 'size':'18'}
font_path = 'C:\Windows\Fonts\Arial.ttf'
font_prop = font_manager.FontProperties(fname=font_path, size=20)
x = np.genfromtxt('test.txt',
skiprows=(3),usecols=(0),delimiter='',dtype=None)
y =
np.genfromtxt('test.txt',skiprows=(3),usecols=(1),delimiter='',dtype=None)
z =
np.genfromtxt('test.txt',skiprows=(3),usecols=(2),delimiter='',dtype=None)
fig, ax1 = plt.subplots()
ax1.errorbar(x, y, fmt = 'b-', linewidth=3.0, xerr = 0.0, yerr = z,
label="Linear")
ax1.set_xlabel('x-values', **axis_font)
ax1.set_ylabel('linear y-values', color='b', **axis_font)
for tl in ax1.get_yticklabels():
tl.set_color('b')
ax1.legend(loc=2, prop=font_prop)
for label in (ax1.get_xticklabels() + ax1.get_yticklabels()):
label.set_fontname('Arial')
label.set_fontsize(18)
ax2 = ax1.twinx()
y2 = np.exp(x)
ax2.errorbar(x, y2, fmt = 'r-', linewidth=3.0, xerr = 0.0, yerr = 1000*z,
label="Exponential")
ax2.set_ylabel('exponential y-values', color='r', **axis_font)
for tl in ax2.get_yticklabels():
tl.set_color('r')
ax2.legend(loc=1, prop=font_prop)
for label in ax2.get_yticklabels():
label.set_fontname('Arial')
label.set_fontsize(18)
#ax2.ticklabel_format(axis='y', style='sci', scilimits=(-2,2))
ax2.get_yaxis().get_major_formatter().set_powerlimits((2,2))
plb.savefig('test.png', bbox_inches='tight')
plt.show()
Which generates the plot shown below.
test.png <http://matplotlib.1069221.n5.nabble.com/file/n44376/test.png>
Now the question is about the line (two ways of doing the same):
#ax2.ticklabel_format(axis='y', style='sci', scilimits=(-2,2))
ax2.get_yaxis().get_major_formatter().set_powerlimits((2,2))
As can be seen from the plot, the 1e4 has both a different size and color
than the rest of the y-axis. I have tried so many methods, but it just
remains the same no matter. Can anyone help?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-ticklabel-tp44376.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Torsten B. <br...@ph...> - 2014-11-14 12:23:22
|
Hallöchen!
I've had a very odd observation today: I call matplotlib 1.3.1 from
Django 1.7 code running on Apache under Ubuntu 14.04. The relevant
code is:
figure = Figure(frameon=False, figsize=(4, 3))
canvas = FigureCanvasAgg(figure)
axes = figure.add_subplot(111)
...
canvas.print_figure(plot_filepath)
The last command hangs.
Funny enough, if I run the very same code on Django's testserver, it
works.
First, I thought of http://stackoverflow.com/questions/22337250 but
this is not the case here. I've really assured that "Agg" is used,
also by providing a proper config file.
The oddest part is, if I replace in matplotlib/scale.py, line 136,
return ma.power(10.0, a) / 10.0
with
return np.power(10.0, a) / 10.0
it works!
Can anybody explain this?
Regards,
Torsten.
--
Torsten Bronger Jabber ID: tor...@ja...
or http://bronger-jmp.appspot.com
|
|
From: Geoffrey M. <geo...@gm...> - 2014-11-13 22:46:23
|
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 <geo...@gm...> 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...@ou...> 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 < >> geo...@gm...> 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...@ou...> 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 <pmh...@gm...> >>>> 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 < >>>>> geo...@gm...> 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 <pmh...@gm...> wrote: >>>>>> >>>>>>> Does a fresh conda environment help? >>>>>>> >>>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < >>>>>>> geo...@gm...> 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 < >>>>>>>> jer...@un...> 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 >>>>>>>>> Mat...@li... >>>>>>>>> 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 >>>>>>>> Mat...@li... >>>>>>>> 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 >>>>> Mat...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>>> >>>> >>> >>> >>> -- >>> -- >>> MEGARDON Geoffrey >>> >> >> > > > -- > -- > MEGARDON Geoffrey > -- -- MEGARDON Geoffrey |
|
From: Geoffrey M. <geo...@gm...> - 2014-11-13 22:35:38
|
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...@ou...> 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 < > geo...@gm...> 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...@ou...> 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 <pmh...@gm...> 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 < >>>> geo...@gm...> 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 <pmh...@gm...> wrote: >>>>> >>>>>> Does a fresh conda environment help? >>>>>> >>>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < >>>>>> geo...@gm...> 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 < >>>>>>> jer...@un...> 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 >>>>>>>> Mat...@li... >>>>>>>> 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 >>>>>>> Mat...@li... >>>>>>> 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 >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>> >> >> >> -- >> -- >> MEGARDON Geoffrey >> > > -- -- MEGARDON Geoffrey |
|
From: Benjamin R. <ben...@ou...> - 2014-11-13 22:06:42
|
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 < geo...@gm...> 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...@ou...> 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 <pmh...@gm...> 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 < >>> geo...@gm...> 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 <pmh...@gm...> wrote: >>>> >>>>> Does a fresh conda environment help? >>>>> >>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < >>>>> geo...@gm...> 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 < >>>>>> jer...@un...> 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 >>>>>>> Mat...@li... >>>>>>> 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 >>>>>> Mat...@li... >>>>>> 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 >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > > > -- > -- > MEGARDON Geoffrey > |
|
From: Geoffrey M. <geo...@gm...> - 2014-11-13 21:57:09
|
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...@ou...> 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 <pmh...@gm...> 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 <
>> geo...@gm...> 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 <pmh...@gm...> wrote:
>>>
>>>> Does a fresh conda environment help?
>>>>
>>>> On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon <
>>>> geo...@gm...> 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 <
>>>>> jer...@un...> 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
>>>>>> Mat...@li...
>>>>>> 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
>>>>> Mat...@li...
>>>>> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
--
--
MEGARDON Geoffrey
|