Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-04 Thread Scott Sinclair
>2009/10/1 ringobelingo : > I would like to add coastlines to a map but do not want interior > 'coastlines'. At present, without them my continents are not distinct enough > from the data I am plotting in the background. But, when I draw them using > drawcoastlines(), I also get e.g. the great lake

Re: [Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Eric Firing
Phillip M. Feldman wrote: > Hello Eric- > > When I look at http://matplotlib.sourceforge.net/api/colors_api.html, > the documentation for LinearSegmentedColormap indicates that there is a > parameter called "N" but does not specify what this parameter does. > Thanks for clarifying this. I wil

Re: [Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Phillip M. Feldman
Hello Eric- When I look at http://matplotlib.sourceforge.net/api/colors_api.html, the documentation for LinearSegmentedColormap indicates that there is a parameter called "N" but does not specify what this parameter does. Thanks for clarifying this. I will submit a patch to the documentation.

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Eric Firing
Jason Sewall wrote: > On Sun, Oct 4, 2009 at 11:45 PM, Eric Firing wrote: >> Use the Axes.set_aspect() method for full control of the aspect ratio, and >> of what gets changed to preserve that aspect ratio. > > Thanks, that works great! Any ideas about Arc's effect on the 'tight' bounds? Sorry,

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Jason Sewall
On Sun, Oct 4, 2009 at 11:45 PM, Eric Firing wrote: > Use the Axes.set_aspect() method for full control of the aspect ratio, and > of what gets changed to preserve that aspect ratio. Thanks, that works great! Any ideas about Arc's effect on the 'tight' bounds? ---

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Eric Firing
Jason Sewall wrote: > While I'm at it, I might as well as about image dimensions vs. axes limits. > > If I change ax.axis('equal') manually to the correct bounding box of > the visible stuff (i.e. ax.axis([1.25, 5, 0, 6])), I then get an image > that is distorted, presumably to fit some pre-set a

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Jason Sewall
On Sun, Oct 4, 2009 at 10:57 PM, Jae-Joon Lee wrote: > MPL, by default, does not do any clipping. So, i'm not sure why the > extent of the circle matters (I think even the bbox_inches option does > not take care of that) . Everything should be fine as far as you > create a figure in an appropriate

Re: [Matplotlib-users] Scaling the axis values from list indices to meaningful values

2009-10-04 Thread Jae-Joon Lee
use "extent" argument. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow -JJ On Fri, Oct 2, 2009 at 7:21 PM, shamster wrote: > > My current plot takes data to construct a 2d histogram. In gnuplot i would > accomplish this by using splot, dgrid3d, and pulling in a '

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Jae-Joon Lee
MPL, by default, does not do any clipping. So, i'm not sure why the extent of the circle matters (I think even the bbox_inches option does not take care of that) . Everything should be fine as far as you create a figure in an appropriate size. Changing the suplotplot parameters (or something simila

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Robert Kern
Ryan May wrote: > On Sun, Oct 4, 2009 at 4:21 PM, Robert Kern wrote: >> On 2009-10-04 15:27 PM, Christopher Barker wrote: >>> Václav Šmilauer wrote: >>> about a year ago I developed for my own purposes a routine for averaging irregularly-sampled data using gaussian average. >>> is this s

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Ryan May
On Sun, Oct 4, 2009 at 4:21 PM, Robert Kern wrote: > On 2009-10-04 15:27 PM, Christopher Barker wrote: >> Václav Šmilauer wrote: >> >>> about a year ago I developed for my own purposes a routine for averaging >>> irregularly-sampled data using gaussian average. >> >> is this similar to Kernel Dens

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Eric Firing
Václav Šmilauer wrote: > Hi, > > about a year ago I developed for my own purposes a routine for averaging > irregularly-sampled data using gaussian average. I would like to > contribute it to matplotlib, after a clean-up, if there is interest. This sounds like a nice thing to have, but I am wonde

[Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Jason Sewall
I'm drawing a figure for inclusion into a LaTeX document, and I'm having trouble getting matplotlib to export a .pdf that 'tightly' encapsulates the drawing that is generated - I get a lot of whitespace at the bottom, in particular. After some experimentation, I've found that the culprit is an Arc

Re: [Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > The attached script creates a colormap containing five colors. At the end of > the script, I print the value of cmap.N, and it is 256 rather than 5. > > http://www.nabble.com/file/p25740788/bugdemo.py bugdemo.py No, it is not a bug. You never told LinearSegmented

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Robert Kern
On 2009-10-04 15:27 PM, Christopher Barker wrote: > Václav Šmilauer wrote: > >> about a year ago I developed for my own purposes a routine for averaging >> irregularly-sampled data using gaussian average. > > is this similar to Kernel Density estimation? > > http://www.scipy.org/doc/api_docs/SciPy.

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Christopher Barker
Václav Šmilauer wrote: > about a year ago I developed for my own purposes a routine for averaging > irregularly-sampled data using gaussian average. is this similar to Kernel Density estimation? http://www.scipy.org/doc/api_docs/SciPy.stats.kde.gaussian_kde.html In any case, it sounds more like

[Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Dr. Phillip M. Feldman
The attached script creates a colormap containing five colors. At the end of the script, I print the value of cmap.N, and it is 256 rather than 5. http://www.nabble.com/file/p25740788/bugdemo.py bugdemo.py -- View this message in context: http://www.nabble.com/possible-bug-in-LinearSegmentedCo

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Gökhan Sever
Hello, Are there any opinions how to make this legend picking work after a zoom or pan event? There is no way to bring the cursor into its beginning shape and therefore non of the clicking works as expected. On Sun, Oct 4, 2009 at 9:37 AM, Peter Butterworth wrote: > Hi, > > I am a bit surprised

[Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Václav Šmilauer
Hi, about a year ago I developed for my own purposes a routine for averaging irregularly-sampled data using gaussian average. I would like to contribute it to matplotlib, after a clean-up, if there is interest. First it stores all data points in a (regular) grid. One can ask for value at arbitrar

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Peter Butterworth
Hi, I am a bit surprised that a line that isn't visible remains pickable by default : # toggle line visibility: vis = not line.get_visible() line.set_visible(vis) # by default a line would remain pickable even if not visible : if vis : line.set_picker(5)

[Matplotlib-users] hierarchical coloring of nodes

2009-10-04 Thread Srivathsan Srinivas
Hi, I am trying to plot a graph and color nodes in a loop. So far, the for-loop I am using can color them. But, I am able to color them using a single color. I want to color the nodes differently for each iteration of the for-loop. How do I do that? My code so far: =

[Matplotlib-users] Scaling the axis values from list indices to meaningful values

2009-10-04 Thread shamster
My current plot takes data to construct a 2d histogram. In gnuplot i would accomplish this by using splot, dgrid3d, and pulling in a 'matrix' data file. The code below has produced nearly what I need. However, the axes limits are set based on the indices of the incoming data (i.e. the number of ro

[Matplotlib-users] Basemap drawcoastlines issue

2009-10-04 Thread ringobelingo
Hi, I would like to add coastlines to a map but do not want interior 'coastlines'. At present, without them my continents are not distinct enough from the data I am plotting in the background. But, when I draw them using drawcoastlines(), I also get e.g. the great lakes showing up, and this just

[Matplotlib-users] Two 3D surface plots where colors represent same value on both surfaces

2009-10-04 Thread Sammo
How do I draw two 3D surface plots where the surface patch colors have consistent meaning? Hope this makes sense ... Currently, I'm just doing two plot_surface commands, each of which has cmap=cm.jet. The two surfaces have different shapes and sizes and have different highest/lowest points. It se

[Matplotlib-users] How to draw two 3D surface plots where colors represent same value on both surfaces

2009-10-04 Thread sammo2828
How do I draw two 3D surface plots where the surface patch colors have consistent meaning? Currently, I'm just doing two plot_surface commands, each of which has cmap=cm.jet. The two surfaces have different shapes and sizes and have different highest/lowest points. I seems that the colormap is au

[Matplotlib-users] How to draw two 3D surface plots where colors represent same value on both surfaces

2009-10-04 Thread Sammo
How do I draw two 3D surface plots where the surface patch colors have consistent meaning? Hope this makes sense ... Currently, I'm just doing two plot_surface commands, each of which has cmap=cm.jet. The two surfaces have different shapes and sizes and have different highest/lowest points. It se

[Matplotlib-users] Got problem in rendering animation(TkAgg)

2009-10-04 Thread Steven Nien
Hello, I wrote the following scripts and expected that the y-axis of the figure changed after each calculation. But it did't work(the plot stayed at the very first state) Can somebody help me fix this? Thanks! import numpy import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt

Re: [Matplotlib-users] Simple gradient

2009-10-04 Thread Gewton Jhames
Ok, but there's a class called map color, I think it goes that way. But I didn't find a way to create map colors with hexadecimal values, only with r, g, b dicts from 0 to 1.0. I didn't get it. I also didn't find how to apply this map colors to a pie patch. On Sat, Oct 3, 2009 at 10:28 PM, Jae-Joo