Re: [Matplotlib-users] viewing my data correctly

2007-12-14 Thread Bryan Fodness
Thanks, this is what I wanted. I overlooked the cumsum() on the end of my array, so the output of the array was not what I expected or needed. Could you help me figure out how to get an axis label and numbers on the right side of my graph. It is the same data and scale as the left side except it

Re: [Matplotlib-users] viewing my data correctly

2007-12-14 Thread Eric Firing
Bryan Fodness wrote: > I would also like to get the area of the mesh element when I fill the > corresponding array element. > > if a[1,0] > area = 1.0 * 0.01 > > if a[30,0] > area = 0.5 * 0.01 > > Is this possible? I'm sorry, but I don't understand what you are asking. Are you askin

Re: [Matplotlib-users] viewing my data correctly

2007-12-14 Thread Bryan Fodness
I would also like to get the area of the mesh element when I fill the corresponding array element. if a[1,0] area = 1.0 * 0.01 if a[30,0] area = 0.5 * 0.01 Is this possible? On Nov 26, 2007 7:02 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Bryan Fodness wrote: > > Could someone give me

Re: [Matplotlib-users] labeling contours with roman numerals

2007-12-14 Thread Mark Bakker
I would guess: CS=contour(A,[50,]) CS.clabel(fmt=FormatFaker('I')) # Labels contour 50 with I CS=contour(A,[60,]) CS.clabel(fmt=FormatFaker('II')) # Labels contour 60 with II Or write a loop if you have many values. Mark On Dec 14, 2007 11:44 PM, Michael Hearne <[EMAIL PROTECTED]> wrote: > I

Re: [Matplotlib-users] labeling contours with roman numerals

2007-12-14 Thread Michael Hearne
I've seen this, but I'm not clever enough to see how to extend that to multiple levels - after all, I don't want to label every line with the same string... --Mike On Dec 14, 2007, at 3:20 PM, Mark Bakker wrote: Michael - This trick for replacing contour labels with a string was posted a

Re: [Matplotlib-users] labeling contours with roman numerals

2007-12-14 Thread Mark Bakker
Michael - This trick for replacing contour labels with a string was posted a little while back (by someone else):* * class FormatFaker(object): def __init__(self, str): self.str = str def __mod__(self, stuff): return self.str A=arange(100).reshape(10,10) CS=contour(A,[50,]) CS.clabel(fmt=F

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Jeff Whitaker
Michael Hearne wrote: > Jeff - Yes! I'm working on implementing this now for my app... > > FYI, I got the following error: > TypeError: drawmapboundary() got an unexpected keyword argument > 'fill_color' > > > and again for 'lake_color' on the fillcontinents() method. > > I'm using 0.9.7, which I

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Michael Hearne
Jeff - Yes! I'm working on implementing this now for my app... FYI, I got the following error: TypeError: drawmapboundary() got an unexpected keyword argument 'fill_color' and again for 'lake_color' on the fillcontinents() method. I'm using 0.9.7, which I think is the latest released versi

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Michael Hearne
Jeff - Yes, that's what I want, thanks. I think more explanation is in order - my large-scale map is the default basemap projection. The inset map of the globe is a orthogonal projection, which means it comes out as a little circle. I want to insert this smaller map into the larger one, w

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Jeff Whitaker
Michael Hearne wrote: > Jeff - Darn it. So is there a way to embed an axis _inside_ another, > possibly with a transparent background? > > --Mike Mike: Not quite sure why you need to have it transparent - you definitely can't have that with postscript, but it should be possible with the othe

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Jeff Whitaker
Michael Hearne wrote: > I am using Basemap, and trying to create two maps: > > One large-scale map, and a small-scale inset map of the world centered > on the location of the large-scale map. My ultimate goal is to create > a figure where the inset map is inserted into a corner of the > large-s

[Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Michael Hearne
I am using Basemap, and trying to create two maps: One large-scale map, and a small-scale inset map of the world centered on the location of the large-scale map. My ultimate goal is to create a figure where the inset map is inserted into a corner of the large-scale map. I can see two ways

Re: [Matplotlib-users] Rendering of fonts in plots does not honor user-specified parameters

2007-12-14 Thread C M
On Dec 13, 2007 4:01 PM, Orest Kozyar <[EMAIL PROTECTED]> wrote: > I've been trying to set the font properties of the plots that I've > been making with matplotlib; however, there appears to be a problem > with font rendering. For example, when I check the properties of text > on the axes, etc, t

Re: [Matplotlib-users] Rendering of fonts in plots does not honor user-specified parameters

2007-12-14 Thread Michael Droettboom
0.90 had a number of issues where it was way too strict in what it would consider a font match -- so it may be that it is rejecting Times New Roman because the numerical weight isn't an exact match, or something like that. In any case, it should be able to match against the serif font included

Re: [Matplotlib-users] Rendering of fonts in plots does not honor user-specified parameters

2007-12-14 Thread Orest Kozyar
Hi Mike, It's matplotlib 0.90.1.0003, and it does not seem to matter which backend I am using. All backends available on my machine give me a sans-serif font, with the exception of WX, which gives me a serif font. I've attached the debug output to this email. It looks like findfont is failing t

Re: [Matplotlib-users] imshow output flips on window resize

2007-12-14 Thread Michael Droettboom
Can you provide a standalone example that exhibits this problem? I'm not able to reproduce this with 0.90.1 and the imshow examples (image_demo.py, image_origin.py). Which backend are you using? My only wild guess is -- with the Agg backend (possibly others), the image is stored flipped from

Re: [Matplotlib-users] two colors on an axis label?

2007-12-14 Thread Michael Droettboom
I don't think it's currently possible in any sort of "automatic" way. There have been thoughts of adding support for multiple y labels in the past, but that's a medium-sized chunk of work. However, as a roundabout approach, you could add figure text: t = gcf().text(0.5, 0.05, "Margin $",

Re: [Matplotlib-users] Rendering of fonts in plots does not honor user-specified parameters

2007-12-14 Thread Michael Droettboom
I'm not able to reproduce this bug here (on a Linux machine). Which backend are you using? What version of matplotlib? Can you set the parameter "verbose.level" to "debug-annoying" and send the output to this list? Cheers, Mike Orest Kozyar wrote: > I've been trying to set the font propertie