Re: [Matplotlib-users] spy ignores negative values?

2006-11-21 Thread Robert Cimrman
John Hunter wrote: >> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > > Eric> Yes, it should be !=0. The purpose is to show how sparse a > Eric> matrix is--how much is filled with zeros--by displaying the > Eric> non-zero entries. > > OK I fixed it. Thanks. Thanks! BTW wou

[Matplotlib-users] plot3D problem

2006-11-21 Thread Richard Johns
I have been trying the 3D matplotlib examples in http://www.scipy.org/Cookbook/Matplotlib/mplot3D using ipython as follows: python -pylab -p scipy import matplotlib.axes3d as ax3d u=r_[0:2*pi:100j] v=r_[0:2*pi:100j] x=10*outer(cos(u),sin(v)) y=10*outer(sin(u),sin(v)) z=10*outer(ones(size(u

Re: [Matplotlib-users] axis number presentation

2006-11-21 Thread Pierre GM
On Tuesday 21 November 2006 22:09, Stephen George wrote: > Thank you Pierre, > > I've taken a while to get around to it, but this code worked a treat, > and taught me a little about how I can override things in matplotlib Glad you found it useful. playing some more about it, I realized that there

Re: [Matplotlib-users] quiver and masked array

2006-11-21 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Anyone who has not done such a compilation is likely to run Eric> into missing devel packages (because they don't get Eric> installed by default), but installing them using synaptic or Eric> apt-get should be easy, and

[Matplotlib-users] pytz not installed on Mac

2006-11-21 Thread Simson Garfinkel
I'm using matplotlib on a Mac. I tried to do a date plot but got an error message that pytz is not installed. According to the "using matplotlib" tutorial pytz it is supposed to be installed automatically... Traceback (most recent call last): File "make_stats.py", line 184, in ? do_pl

Re: [Matplotlib-users] savefig.edgecolor not working

2006-11-21 Thread John Hunter
> "Samuel" == Samuel M Smith <[EMAIL PROTECTED]> writes: Samuel> I figured it out. It is saving the outside edge as Samuel> transparent not gray. I was viewing the images in Apple's Samuel> preview and it displays transparent as gray (not Samuel> checkerboard like photoshop or

Re: [Matplotlib-users] spy ignores negative values?

2006-11-21 Thread Eric Firing
John Hunter wrote: ... > I am not a spy user, though I wrote it. I assume the test should be Z!=0? > > Note spy2 (which arguably makes a nicer plot) has the same potential > problem. If there is consensus that it should be !=0 I am happy to > change it. Yes, it should be !=0. The purpose is to

[Matplotlib-users] quiver and masked array

2006-11-21 Thread giovanni ruggiero
Hi ALL, I am just starting to leave the matlab to work with matplotlib 82-5 in my ubuntu linux. I have problens to make a vector fild plots using quiver. I have a netcdf file that i extract a u_velocity and v_velocity variables, after i mask the array and try to quiver. i get the following erro

Re: [Matplotlib-users] quiver and masked array

2006-11-21 Thread Eric Firing
From my point of view, version 82-5 is simply too old to bother with. In newer versions quiver has been completely rewritten including masked array support. I recommend that you remove your ubuntu mpl package and install the latest release from the source tarball. Eric giovanni ruggiero wro

Re: [Matplotlib-users] spy ignores negative values?

2006-11-21 Thread John Hunter
> "Robert" == Robert Cimrman <[EMAIL PROTECTED]> writes: Robert> It looks like the 'spy' function ignores negative values Robert> (matplotlib 0.87.5). Robert> In [30]:spy( ones( (5, 5) ) )[0].get_xdata() Out[30]: Robert> array([ 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 1.5

[Matplotlib-users] wxmsw26uh_vc.dll again ?

2006-11-21 Thread Gary
I'm trying to upgrade things. Upon doing so, I find that pylab gives a warning about not finding wxmsw26uh_vc.dll A search suggested that I need the unicode version of wx. I installed that, but still get the same message. (Thinking I accidently installed the ansi version, I downloaded and in

Re: [Matplotlib-users] axis number presentation

2006-11-21 Thread Stephen George
Thank you Pierre, I've taken a while to get around to it, but this code worked a treat, and taught me a little about how I can override things in matplotlib Thanks Steve Pierre GM wrote: >> One thing I cannot work out is the axis number presentation. >> Cannot find any documentation about how t

[Matplotlib-users] Changing markers on line

2006-11-21 Thread Stephen George
Have a lot of data, and when looking at full view I'd like no markers, but when zoom in to see individual points I'd like to place markers on the graph. Planing on attaching some code to events to toggle markers on my line. Is there a way to change the markers a line uses after it has been plot

Re: [Matplotlib-users] gtk not working

2006-11-21 Thread Adam Miller
Hi, It is correct that the machine I'm building on does not have X11 running, though it is installed. I can, however, enter python and import gtk without error. [EMAIL PROTECTED] examples]# python Python 2.4.1 (#1, May 16 2005, 15:15:14) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 Type

[Matplotlib-users] savefig.edgecolor not working

2006-11-21 Thread Samuel M. Smith
I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from sourceforge binary Using backend TkAgg version 8.4 Whenever I save png plots using the toolbar save button or explicitly, the edgecolor around the outside of the plot is gray. I want it to be white. I have the following

[Matplotlib-users] OS X: upgrade to X11 1.1.3 breaks mpl FIX

2006-11-21 Thread Tony Mannucci
If you saw my previous post about upgrading to XDarwin 1.1.3, and breaking matplotlib, the following seems to work: Soft-linking to libfreetype.6.3.8.dylib rather than libfreetype.6.3.dylib (see below, copied from previous email). Thanks for that Apple! -Tony > >>> import numpy as N N

Re: [Matplotlib-users] savefig.edgecolor not working

2006-11-21 Thread John Hunter
> "Samuel" == Samuel M Smith <[EMAIL PROTECTED]> writes: Samuel> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 Samuel> python 2.4 from sourceforge binary Using backend TkAgg Samuel> version 8.4 Samuel> Whenever I save png plots using the toolbar save button or Sam

Re: [Matplotlib-users] savefig.edgecolor not working

2006-11-21 Thread Samuel M. Smith
It also doesn't work with backend WXAgg version 2.6.3.3 On 21 Nov, 2006, at 12:13, Samuel M. Smith wrote: > I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from > sourceforge binary > Using backend TkAgg version 8.4 > > > Whenever I save png plots using the toolbar save button or

Re: [Matplotlib-users] gtk not working

2006-11-21 Thread John Hunter
> "Adam" == Adam Miller <[EMAIL PROTECTED]> writes: Adam> Hi, It is correct that the machine I'm building on does not Adam> have X11 running, though it is installed. I can, however, Adam> enter python and import gtk without error. Adam> [EMAIL PROTECTED] examples]# python Pyt