[Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread V. Armando Solé
Hello, I am trying to plot a line assigning a user specified color to each marker. The idea is that if I have n points x, n ppoints y, I was expecting to be able to provide n markeredgecolors or n markerfacecolors as a (npoints, 4) array of RGBA values. However that does not seem to be possibl

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Benjamin Root
Resending to the list, but also with amendments to my previous statement (the new gmail app is really crappy with viewing conversations...) """ Ah, I see I missed that in the original message (I was heading out the door at the time). You say there is a crash. Is there a traceback or segfault? Also

Re: [Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread Thomas Caswell
If you want each marker to be a different color you have to use scatter. You can pass scatter a sequence of colors (see http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.scatter) so you don't have to go through making a custom colormap. Tom On Thu Nov 13 2014 at 9:01:42 AM "V. Armando S

Re: [Matplotlib-users] Control of the display of the navigation toolbar --- how?

2014-11-13 Thread Thomas Caswell
Also note that there is an rcparams context manager ( http://matplotlib.org/api/matplotlib_configuration_api.html#matplotlib.rc_context) that will take care of the boiler plate of temporarily changing an rcparam. On Wed Nov 12 2014 at 10:52:03 PM Sterling Smith wrote: > Virgil, > > Glad to hea

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Geoffrey Mégardon
Someone installed Vizard on my PC before, which has its own python distribution, that may be the reason of all those troubles. I uninstalled it. Then I tried the code with python without any IDE from the Windows console. The same kind of thing happens. With "agg" backend, no error, but no figure e

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Paul Hobson
Does a fresh conda environment help? On Wed, Nov 12, 2014 at 5:38 PM, Geoffrey Mégardon < geoffrey.megar...@gmail.com> 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 l

Re: [Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread V. Armando Sole
On 13.11.2014 18:04, Thomas Caswell wrote: > If you want each marker to be a different color you have to use > scatter. You can pass scatter a sequence of colors (see > http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.scatter > [4]) so you don't have to go through making a custom colorm

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Geoffrey Mégardon
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 wrote: > Does a fresh conda environment help? > > On Wed, Nov 12, 2014 at 5:38 P

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Paul Hobson
No clue about that. BTW, I'll i was suggestion was to create a new conda enviorment: > conda create --name=mpl3dtest matplotlib ipython-notebook python=3.4 ... > activate mpl3dtest > ipython notebook > [test out 3d plotting] On Thu, Nov 13, 2014 at 12:44 PM, Geoffrey Mégardon < geoffrey.megar...

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Benjamin Root
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

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Geoffrey Mégardon
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 wrote: > No OpenGL. The 3d graphics all goes through the same layering engine as > the 2D plots. They aren't real 3D plots

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Benjamin Root
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

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Geoffrey Mégardon
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

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-13 Thread Geoffrey Mégardon
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 m