[Matplotlib-users] Make a legend for a scatter plot

2006-10-21 Thread Jeff Huang
using scatter() to draw a plot, is it possible to create a legend for this? I have blue points of varying sizes representing values in the plot I'd like to show a medium-sized blue dot for this plot in the legend. Using the legend() function shows nothing for scatter plots in the displayed legend

Re: [Matplotlib-users] OPlot-like function

2006-10-21 Thread John Hunter
> "David" == David Andrews <[EMAIL PROTECTED]> writes: David> Any help would be appreciated, http://www.scipy.org/Cookbook/Matplotlib/Animations - Using Tomcat but need to do more? Need to support web services, secur

[Matplotlib-users] OPlot-like function

2006-10-21 Thread David Andrews
Hi, I'm slightly confused as to how i'm supposed to write a program that will call plot() once initially, and then subsequently update the plot with new points as they are generated. As i understand it I should be doing something along the following lines: #First call: plot(x0,y0,hold=True) show

[Matplotlib-users] Plot3D errors

2006-10-21 Thread Andrea Gavana
Hi all,       am I the only one that noticed that 3D plots do not work anymore? Unless I am missing something, contour3D, contourf3D simply fails with this message:   Traceback (most recent call last):  File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 440, in add_axes    a = Axes(sel

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-21 Thread Eric Firing
Willi Richert wrote: > Am Freitag, 20. Oktober 2006 17:31 schrieb John Hunter: >> from pylab import * >> >> ax1 = subplot(111) >> t = arange(0.01, 10.0, 0.01) >> s1 = exp(t) >> plot(t, s1, 'b-') >> xlabel('time (s)') >> ylabel('exp') >> >> >> # turn off the 2nd axes rectangle with frameon kwarg >>

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-21 Thread Willi Richert
Am Freitag, 20. Oktober 2006 17:31 schrieb John Hunter: > from pylab import * > > ax1 = subplot(111) > t = arange(0.01, 10.0, 0.01) > s1 = exp(t) > plot(t, s1, 'b-') > xlabel('time (s)') > ylabel('exp') > > > # turn off the 2nd axes rectangle with frameon kwarg > ax2 = twinx() > s2 = sin(2*pi*t) >