[Matplotlib-users] NOAA .bull file parsing

2009-01-16 Thread antonv
Dear all, I know this is not related to matplotlib but this seems to be the only place where I found people that have knowledge of both NOAA data and python so please bear with me. The .bull file that NOAA gives for upload is an ascii file formatted for human readability but it creates a lot of

Re: [Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread Eric Firing
antonv wrote: > Thanks again! That looks cool and seems that it can be used it to a lot of > other projects I have going on! If you are looking for something to use for your own projects, I recommend not svn but one of the more modern distributed vcs systems: mercurial (hg), bzr, or git. I use

Re: [Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread antonv
Thanks again! That looks cool and seems that it can be used it to a lot of other projects I have going on! Anton efiring wrote: > > antonv wrote: >> Thanks for the quick reply John! Now it makes a lot more sense. The next >> dumb >> question is what is SVN and where can I find more bout it? >

Re: [Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread Eric Firing
antonv wrote: > Thanks for the quick reply John! Now it makes a lot more sense. The next dumb > question is what is SVN and where can I find more bout it? http://sourceforge.net/svn/?group_id=80706 http://subversion.tigris.org/ Eric > > > John Hunter-4 wrote: >> On Fri, Jan 16, 2009 at 10:33 A

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Eric Firing
Neal Becker wrote: > On Friday 16 January 2009, Eric Firing wrote: >> Neal Becker wrote: >>> pylab.plot (xaxis, log10 (the_sum)*10) >>> where xaxis is numpy array, and log10(the_sum)*10 is my own class that is >>> a valid python sequence (it is a c++ wrapper around boost::ublas), gives: >>> Fil

Re: [Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread antonv
Thanks for the quick reply John! Now it makes a lot more sense. The next dumb question is what is SVN and where can I find more bout it? John Hunter-4 wrote: > > On Fri, Jan 16, 2009 at 10:33 AM, antonv > wrote: >> >> I have a series of 18 separate colors to create my cmap but I would like >>

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Eric Firing
Neal Becker wrote: > On Friday 16 January 2009, Eric Firing wrote: >> Neal Becker wrote: >>> pylab.plot (xaxis, log10 (the_sum)*10) >>> where xaxis is numpy array, and log10(the_sum)*10 is my own class that is >>> a valid python sequence (it is a c++ wrapper around boost::ublas), gives: >>> Fil

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Eric Firing
Neal Becker wrote: > pylab.plot (xaxis, log10 (the_sum)*10) > where xaxis is numpy array, and log10(the_sum)*10 is my own class that is a > valid python sequence (it is a c++ wrapper around boost::ublas), gives: > File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-linux- > x86_

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Neal Becker
On Friday 16 January 2009, Eric Firing wrote: > Neal Becker wrote: > > pylab.plot (xaxis, log10 (the_sum)*10) > > where xaxis is numpy array, and log10(the_sum)*10 is my own class that is > > a valid python sequence (it is a c++ wrapper around boost::ublas), gives: > > File "/usr/lib/python2.5/

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Neal Becker
On Friday 16 January 2009, Eric Firing wrote: > Neal Becker wrote: > > pylab.plot (xaxis, log10 (the_sum)*10) > > where xaxis is numpy array, and log10(the_sum)*10 is my own class that is > > a valid python sequence (it is a c++ wrapper around boost::ublas), gives: > > File "/usr/lib/python2.5/

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Eric Firing
Neal Becker wrote: > pylab.plot (xaxis, log10 (the_sum)*10) > where xaxis is numpy array, and log10(the_sum)*10 is my own class that is a > valid python sequence (it is a c++ wrapper around boost::ublas), gives: > File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-linux- > x86_

[Matplotlib-users] plot problem

2009-01-16 Thread Neal Becker
pylab.plot (xaxis, log10 (the_sum)*10) where xaxis is numpy array, and log10(the_sum)*10 is my own class that is a valid python sequence (it is a c++ wrapper around boost::ublas), gives: File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-linux- x86_64.egg/matplotlib/pyplot.py",

[Matplotlib-users] Color themes

2009-01-16 Thread Yang Zhang
I'm no good at choosing colors. Does matplotlib have a way to automatically assign colors (based on a theme), or provide a way to choose a color from a theme? (Excel 2007 opened my eyes to this.) Currently, when I do: bar(..., color = 'r', ...) bar(..., color = 'y', ...) bar(..., col

[Matplotlib-users] sizing plot right when embedded in wxPython

2009-01-16 Thread C M
Hi, this is somewhat of a wxPython issue, maybe, but in the end I think my confusion is in how the sizing of a mpl canvas vs. a figure ought to work, and so I am trying here first. The attached code (a wxPython frame which displays a mpl graph...what most here would call a plot) shows my problem.

Re: [Matplotlib-users] [Matplotlib-announce] Bug in image.py module ?

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 3:12 PM, wrote: > Hello everybody, > > I may have found a bug in the module image.py, class AxesImage, of > matplotlib 0.98.5. > > The method 'get_interpolation' has been defined twice. The first time > it returns the attribute '_interpolation' (the right one). A few lines

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread projetmbc
Title: Flashmail Thanks a lot. That's a real good example.   Regards. C.   >Take a look at the matplotlib widgets example referenced below. It >uses mpl widgets rather than qt widgets, but it should make clear the >logic of updating plot properties connected to callbacks > >http://matplotlib.sv

Re: [Matplotlib-users] Basemap.pyproj: towgs84

2009-01-16 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi, > > it seems that pyproj.Proj does not take into account the "towgs84" > optional parameter. > Here is what I simply tried: > > from mpl_toolkits.basemap import * > lonref = -3. > latref = 47. > > kwproj = dict(proj="lcc", a=6378249.2, b=6356515., x_0=60.,

[Matplotlib-users] Basemap.pyproj: towgs84

2009-01-16 Thread Stephane Raynaud
Hi, it seems that pyproj.Proj does not take into account the "towgs84" optional parameter. Here is what I simply tried: from mpl_toolkits.basemap import * lonref = -3. latref = 47. kwproj = dict(proj="lcc", a=6378249.2, b=6356515., x_0=60., y_0=20., lon_0="2d20'14.025", lat_0="46d4

Re: [Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 10:33 AM, antonv wrote: > > I have a series of 18 separate colors to create my cmap but I would like to > convert that to a continuous map which interpolates all the other values in > between my chosen colors. This should be really easy but I am not sure how > can it be sol

[Matplotlib-users] cmap from sepparate color values

2009-01-16 Thread antonv
I have a series of 18 separate colors to create my cmap but I would like to convert that to a continuous map which interpolates all the other values in between my chosen colors. This should be really easy but I am not sure how can it be solved. Any ideas? Thanks, Anton -- View this message in co

Re: [Matplotlib-users] Problem with shapelib

2009-01-16 Thread Jeff Whitaker
David Trethewey wrote: > http://www.srcf.ucam.org/cukernow/par1851.shp > > It's a map of the historic parishes of England and Wales if you're > curious. > > David > David: You also need the corresponding .shx and .dbf files to open it - perhaps that is the problem? -Jeff > Jeff Whitaker wrote:

Re: [Matplotlib-users] axes through origin (0,0)

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 9:47 AM, Zoho Vignochi wrote: > Hello: > > I would like to place the x label and y label to be placed above lines > running through the origin (0,0). I am happy to leave the tick markings > on the border around the plot. > > I currently use a > ax.axvline(x=0, color='black'

Re: [Matplotlib-users] Problem with shapelib

2009-01-16 Thread Jeff Whitaker
David Trethewey wrote: > I've had problems trying to read shapefiles using the matplotlib basemap > toolkit > > I can import the shapelib module without error but when I try to read a > shapefile this happens: > > Traceback (most recent call last): > File "C:\Documents and Settings\David\Deskto

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 9:40 AM, wrote: > That's great. I'm a real newbie with mpl and I would like to know how to > change figure after a PyQt-Event. > That's must be simple but I don't see how to do this. My idea would be for > example to show different kinds of draw like for example the sin fu

[Matplotlib-users] Problem with shapelib

2009-01-16 Thread David Trethewey
I've had problems trying to read shapefiles using the matplotlib basemap toolkit I can import the shapelib module without error but when I try to read a shapefile this happens: Traceback (most recent call last): File "C:\Documents and Settings\David\Desktop\cornwall\try_4828.py", line 44, in

[Matplotlib-users] axes through origin (0,0)

2009-01-16 Thread Zoho Vignochi
Hello: I would like to place the x label and y label to be placed above lines running through the origin (0,0). I am happy to leave the tick markings on the border around the plot. I currently use a ax.axvline(x=0, color='black') ax.axhline(y=0, color='black') to get the lines, but how to get

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread projetmbc
That's great. I'm a real newbie with mpl and I would like to know how to change figure after a PyQt-Event. That's must be simple but I don't see how to do this. My idea would be for example to show different kinds of draw like for example the sin function and another function. The users just hav

Re: [Matplotlib-users] FourierDemo now on wxPyWiki

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 8:20 AM, Tom Krauss wrote: > After some positive feedback and subsequent discussion on the > wxPython users list, I decided to add a wiki page for the Fourier > Demo I posted earlier: > > http://wiki.wxpython.org/MatplotlibFourierDemo > > Robin, et. al., do you think this

[Matplotlib-users] FourierDemo now on wxPyWiki

2009-01-16 Thread Tom Krauss
After some positive feedback and subsequent discussion on the wxPython users list, I decided to add a wiki page for the Fourier Demo I posted earlier: http://wiki.wxpython.org/MatplotlibFourierDemo Robin, et. al., do you think this warrants moving up into a new category (e.g. RecipesMatp

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread B Clowers
You'll have to excuse some of the comments in the code (it's in a constant state of revision), but this is a basic PyQt4/matplotlib widget that I use quite often and can be embedded using QtDesigner as well.  You'll obviously need PyQt4, Matplotlib, and Numpy to run it.  Of course mods can be m

Re: [Matplotlib-users] plot() cuts off long tick labels

2009-01-16 Thread John Hunter
On Jan 15, 2009, at 8:41 PM, Eric Firing wrote: > Chris Fonnesbeck wrote: >> Is there any way of preventing tick label names from being cut off by >> the plot canvas? Seems to happen every time: >> >> http://a3.s3.p.quickshareit.com/files/validationb0e66.png >> >> Thanks in advance. >> > > Ther

Re: [Matplotlib-users] Color Map.

2009-01-16 Thread projetmbc
Title: Flashmail Thanks, that's look great.   Regards. C.   >Unfortunately, I don't use Mayavi and therefore don't have any easy >examples to offer. I guess you might find such things in the user >guide or Cookbook. > >http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/ >htt

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-16 Thread projetmbc
Title: Flashmail Thanks, that's work well.   Regards. C.     >I presume that you're only interested in the math formula, and not in >any other graphical functionality of MPL. You may use mathtext module >directly in that case. > >from matplotlib.mathtext import MathTextParser > >p = MathTextPar