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 =

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/

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 efir...@hawaii.edu 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.

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

Re: [Matplotlib-users] FourierDemo now on wxPyWiki

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 8:20 AM, Tom Krauss t...@kraussfamily.org 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

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

[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

[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

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 9:40 AM, projet...@club-internet.fr 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

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

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 zoho.vigno...@gmail.com 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

[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

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

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 10:33 AM, antonv vasilescu_an...@yahoo.com 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

[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=46d48',

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., y_0=20.,

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, pellegr...@ill.fr 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).

[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(...,

[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,

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-

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

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-

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: File

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 vasilescu_an...@yahoo.com wrote: I have a series of 18 separate colors to create my cmap

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: File

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 AM,

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 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

[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