[Matplotlib-users] getting legend loc

2010-04-08 Thread Peter Butterworth
Hi, I'm having trouble getting some properties that are easily set : leg=legend(loc=0) is there a way to retrieve the legend location ? In a similar vein : axis('scaled') is there a way to retrieve the "scaled" property ? If no methods/properties are available in the default API is it possible

[Matplotlib-users] Colorbar shifting

2010-04-08 Thread Rachel-Mikel Arce Jaeger
Hello everyone, I'm working with hexbin() and I'd like the output to be shifted towards the red end of the spectrum. Does anyone know if there's a way to shift how the colors are output? Thanks! Rachel -- Download Inte

Re: [Matplotlib-users] a quick way to plot 3D surface with point coordination?

2010-04-08 Thread ericyosho
Yes, Thanks, Friedrich. :-) This is exactly what I want. By now I know we have to plot over a uniformly sampled plane any way at the end of the day, no matter whether our original data is uniformly sampled or not. Zhe Yao On Thu, Apr 8, 2010 at 6:07 PM, Friedrich Romstedt wrote: > 2010/4/4 eric

Re: [Matplotlib-users] a quick way to plot 3D surface with point coordination?

2010-04-08 Thread Friedrich Romstedt
2010/4/4 ericyosho : > Year, I think we could do unsorted scatter plot as well, however I'm > still not satisfied with the book tracking routines I have to check > when doing the surface plotting. What do you mean with "book tracking routines"? Anyway, maybe griddata would help you: http://matplo

Re: [Matplotlib-users] griddata and masked arrays

2010-04-08 Thread Friedrich Romstedt
2010/4/3 ms : > I am trying to use griddata to plot some (irregularly) spaced data as a > contour plot, but sometimes ALL the grid it outputs is masked: so no plot. > > In the docs I read: > "A masked array is returned if any grid points are outside convex hull > defined by input data (no extrapola

Re: [Matplotlib-users] 2 lines, 2 diff colors, when converged, gets 3rd color...

2010-04-08 Thread Michael Droettboom
The default behavior should be for the lines not to blend. Can you provide a short example script that illustrates what you're seeing? Or an image? Mike KrishnaPribadi wrote: > I'm plotting 2 lines with 2 colors. The lines are binary so they are somewhat > square. When the lines converge on a

[Matplotlib-users] 2 lines, 2 diff colors, when converged, gets 3rd color...

2010-04-08 Thread KrishnaPribadi
I'm plotting 2 lines with 2 colors. The lines are binary so they are somewhat square. When the lines converge on a same value for a period, their colors combine and turn into a 3rd color Is there a way to force the plotting to not "blend" the 2 colors together? I just want the 2nd line to la

[Matplotlib-users] can't interact with embedded gtk

2010-04-08 Thread Mathew Yeates
The following works without the --pylab switch but not with it. The error I get is some how related to a call to get the active figure which returns None. C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.pyc in set_axes_limi ts(self, ax) 2531 if is_interactive(): 2532

Re: [Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread KrishnaPribadi
Thanks Tony. That helps clean up the code. Now that I think about it more, I actaually had 2 questions. The first you answered well. The second question relates to my problem when using this method in that it produces line colors where some colors are too similar. In other words, there isn't eno

Re: [Matplotlib-users] Basemap white space

2010-04-08 Thread Friedrich Romstedt
2010/4/8 Filipe Fernandes : > BTW: What I meant by limitation is the fact that Agg has no GUI like the > nice QT window I was using before. The users of this script have no > experience with scripting languages and enjoyed choosing the format and > filename using a GUI interface. I'm quite convinc

Re: [Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread Tony S Yu
On Apr 8, 2010, at 8:13 AM, KrishnaPribadi wrote: > > Hi, > I'm trying to plot a set of lines, 12 to be exact, and the default color > cycle only supports 8 or 9 distinct colors. That said, I looked up the color > maps and segmented it using 12 constant intervals with the hope of getting > 12 d

Re: [Matplotlib-users] Basemap white space

2010-04-08 Thread Filipe Fernandes
Sorry, my bad. I always hit reply without checking... it is not the first time did that, Here is the solution for the list sake: """ trim image """ import StringIO, Image imgdata = StringIO.StringIO() fig.savefig(imgdata, dpi=300, format='png') imgdata.seek(0) im = Image.open(imgdata) def trim(i

[Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread KrishnaPribadi
Hi, I'm trying to plot a set of lines, 12 to be exact, and the default color cycle only supports 8 or 9 distinct colors. That said, I looked up the color maps and segmented it using 12 constant intervals with the hope of getting 12 distinct colors. The problem I'm running in to is that some of t