Re: [Matplotlib-users] plot with marker color coded according to z-value

2012-10-19 Thread elmar werling
Am 19.10.2012 23:26, schrieb Damon McDougall: > Correct me if I'm wrong, but I don't even think you need them. I think > the default cmap behaviour is to normalise to the min and max of the > data. yes, default cmap behaviour will normalise to the min and max of the data. --

Re: [Matplotlib-users] plot with marker color coded according to z-value

2012-10-19 Thread elmar werling
thanks for help, finally I found the following solution elmar import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt N = 200 x = np.linspace(0,1,N) y = np.random.randn(N) z = np.random.randn(N)*2+5 cm = mpl.cm.get_cmap('RdYlBu') sc = plt.scatter(x, y, c=z,

[Matplotlib-users] plot with marker color coded according to z-value

2012-10-19 Thread elmar werling
Hi, is there a way to adjust the marker color in a xy-plot in relation to the value of a third parameter. Something as the following - not working - example 1. Example 2 is working but rather slow for large arrays. cheers Elmar # example 1 import matplotlib.pyplot as plt x = [1,2,3,4] y

Re: [Matplotlib-users] python3 and matplotlib installation problem

2012-07-28 Thread elmar werling
Am 28.07.2012 21:46, schrieb Christoph Gohlke: > On 7/28/2012 12:29 PM, elmar werling wrote: >> Hi, >> >> just installed matplotlib by doing >> >> git clone https://github.com/matplotlib/matplotlib >> cd matplotlib >> python3 setup.py build >>

[Matplotlib-users] python3 and matplotlib installation problem

2012-07-28 Thread elmar werling
Hi, just installed matplotlib by doing git clone https://github.com/matplotlib/matplotlib cd matplotlib python3 setup.py build sudo python3 setup.py install When I import matplotlib.pyplot I get the following error message. Any help is wellcome Elmar Python 3.2.1 (default, Jul 18 2011, 16

Re: [Matplotlib-users] Problem with ani.save

2011-12-29 Thread elmar werling
yeap, thanks a lot. after installing ffmpeg everything is working smoothly. On 29.12.2011 12:12, Fabrice Silva wrote: > It seems that the Animation.save method assume that ffmpeg is installed, > as there is no cmd_gen keyword argument for this method. > > As a quick and dirty fix, you may chan

[Matplotlib-users] Problem with ani.save

2011-12-29 Thread elmar werling
Hi, running the "AnimatedImage.py" I get the appended error message. What's wrong? Cheers Elmar In [5]: run AnimatedImage.py ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in

[Matplotlib-users] Ternary Plot

2011-11-03 Thread elmar werling
Hi, could not found anything like plot_ternary() in the matplotlib documentation. Is there an easy to use method to plot data points and lines in a ternary plot using matplotlib? Any hint is wellcome Elmar -- RSA(R

Re: [Matplotlib-users] orienting 2d plots in 3d

2011-03-26 Thread elmar
same for x,y and x,z quiver plots. > > Any ideas for matplotib 3d? Thanks! > > John Gibson have a look at "Volumetric Slice Plot" in the tutorial of Easyviz (http://code.google.com/p/scitools/) Elmar -