Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes
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)
> plot(t, s2, 'r.')
> ylabel('sin')
> ax2.yaxis.tick_right()
> ax2.set_ylim(ymin=-3)
> show()
Hi,
this example does not work for me: Right axis is in the range [-1, 1].
(The same as the example two_axes.py with an additional set_ylim in my
previous mail. Sorry for the sparse information.)
matplotlib.__version__ == 0.82
python 2.4
Thanks,
wr
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes
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
>> ax2 = twinx()
>> s2 = sin(2*pi*t)
>> plot(t, s2, 'r.')
>> ylabel('sin')
>> ax2.yaxis.tick_right()
>> ax2.set_ylim(ymin=-3)
>> show()
>
> Hi,
>
> this example does not work for me: Right axis is in the range [-1, 1].
> (The same as the example two_axes.py with an additional set_ylim in my
> previous mail. Sorry for the sparse information.)
>
> matplotlib.__version__ == 0.82
There is the problem: you need to update your matplotlib.
Eric
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Plot3D errors
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(self, rect, **kwargs) File "C:\Python25\lib\site-packages\matplotlib\axes.py", line 348, in __init__ self._position = map(makeValue, rect)TypeError: argument 2 to map() must support iteration While the other 3D plots suffer of problems when the mouse enter the plot window; I get these error messages: Traceback (most recent call last): File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_wx.py", line 1149, in _onMotion FigureCanvasBase.motion_notify_event(self, x, y, guiEvent=evt) File "C:\Python25\Lib\site-packages\matplotlib\backend_bases.py", line 895, in motion_notify_event func(event) File "C:\Python25\lib\site-packages\matplotlib\axes3d.py", line 414, in on_move if event.inaxes != self or not self.M:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() Am I missing something? I am using: Windows XP Python 2.5 wx* 2.7.1.1 (it doesn't matter in reality) Numpy 1.0rc2 matplotlib 0.87.6 (NOT svn) Thanks for every suggestion.-- Andrea."Imagination Is The Only Weapon In The War Against Reality."http://xoomer.virgilio.it/infinity77/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] OPlot-like function
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() #Subsequent calls: plot(x1,y1,hold=True) plot(x2,y2,hold=True) ... But this does not work as expected. Any help would be appreciated, Regards, Dave Andrews - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] OPlot-like function
> "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, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Make a legend for a scatter plot
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. Thanks, Jeff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
