Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread John Hunter
On Thu, Jun 12, 2008 at 9:21 PM, James A. Benson [EMAIL PROTECTED] wrote: My app uses the wx backend, so I happened to notice that the backend_wx doesn't seem to work with matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py shows the problem. Only a bit of the lines get plotted.

Re: [Matplotlib-users] Consist Symbols/Sizes between Plot/Scatter

2008-06-13 Thread John Hunter
On Thu, Jun 12, 2008 at 8:56 PM, T J [EMAIL PROTECTED] wrote: I am making a scatter plot and want the legend to display the symbols. This functionality doesn't seem to exist, so I have followed the workaround outlined here:

Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-13 Thread John Hunter
On Fri, Jun 13, 2008 at 2:43 AM, Dan Murphy [EMAIL PROTECTED] wrote: import scipy scipy.test('1','10') gave me this Traceback (most recent call last): ImportError: Need nose =0.10 for tests - see This is just an error in the testing framework. Apparently you need to upgrade to nose 0.1 to

Re: [Matplotlib-users] pie chart lables

2008-06-13 Thread John Hunter
On Fri, Jun 13, 2008 at 5:24 AM, Jatinder Syali [EMAIL PROTECTED] wrote: Hi all, I am trying to create pie chart using matplotlib. I have 9 items to be plotted in the chart. sometimes the length of the lable appears to be long which scatteres them in the chart. Is there any way to create a

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Michael Droettboom
Sorry I'm just getting into this discussion now. The wx backend in 0.98 is almost a complete rewrite to use wx.GraphicsContext rather than the older wx.DC interface. It was no longer possible to move forward with the new rendering infrastructure with the wx.DC interface due to lack of support

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Stan West
For what it's worth, the WX backend isn't working for me with wxPython 2.8.4; I get the following when I attempt to show a figure: File C:\Program Files\Python25\lib\site-packages\matplotlib-0.98.0_r5467-py2.5-win32.egg\mat plotlib\backends\backend_wx.py, line 474, in select

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Michael Droettboom
FWIW, I developed the new wx backend using wx 2.8.6.1, and it does currently work for me. Unfortunately, it's always hard to know how to write for a broad range of point releases for wxPython -- the documentation offers little clues about when features were added or changed. Cheers, Mike

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Andrea Gavana
Hi Michael, On Fri, Jun 13, 2008 at 2:23 PM, Michael Droettboom wrote: FWIW, I developed the new wx backend using wx 2.8.6.1, and it does currently work for me. Unfortunately, it's always hard to know how to write for a broad range of point releases for wxPython -- the documentation offers

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Stan West
Hi, Andrea. Yes, I bet that upgrading would resolve the issue. However, the issue isn't getting in my way at the moment, since I use the WXAgg backend and it works well as far as I can tell. I mainly wanted to point out for informational purposes -- and I may have been unclear about my point --

[Matplotlib-users] axes labels missing from plot

2008-06-13 Thread Robin
Hi, I'm not sure if I'm doing something wrong, but I find the sizing of the axes areas when doing plots a bit problematic. If I make the figures small, the actual plot area takes up most of the area and the axes labels aren't visible unless I make the window bigger. When I export to eps or pdf,

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread James A. Benson
On Fri, 13 Jun 2008, John Hunter wrote: On Thu, Jun 12, 2008 at 9:21 PM, James A. Benson wrote: My app uses the wx backend, so I happened to notice that the backend_wx doesn't seem to work with matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py shows the problem. Only a bit

Re: [Matplotlib-users] CocoaAgg backend seems to be broken

2008-06-13 Thread Charlie Moad
I am out of town and won't be able to address this until early next week. - Charlie 2008/6/12 John Hunter [EMAIL PROTECTED]: On Thu, Jun 12, 2008 at 2:58 PM, İsmail Dönmez [EMAIL PROTECTED] wrote: Hi all, I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca backend

[Matplotlib-users] Creating an oceanographic profile with matplotlib

2008-06-13 Thread Oz Nahum
Hi all, I am trying to plot an oceanographic profile using some ocean data I have. The thing is that in oceanograhy it is common to display graphs where the independent variable (x) is depth, and some other data (i.e salinity or temperature) is plotted against it. The graph is supposed to look

Re: [Matplotlib-users] Creating an oceanographic profile with matplotlib

2008-06-13 Thread Ryan May
Oz Nahum wrote: Hi all, I am trying to plot an oceanographic profile using some ocean data I have. The thing is that in oceanograhy it is common to display graphs where the independent variable (x) is depth, and some other data (i.e salinity or temperature) is plotted against it. The

Re: [Matplotlib-users] Creating an oceanographic profile with matplotlib

2008-06-13 Thread Abhinav Verma
or more appropriately you might need this from pylab import * setp(gca(), 'xticklabels', []) subplot(111) ax=twiny() y = [1, 2, 3, 4] x = [5, 4, 2, 2] plot(x, y, 'ro-') ylim(5,0) xlim(1,6) ax.xaxis.tick_top() xlabel('Y') ylabel('X') show() On Fri, Jun 13, 2008 at 10:24 AM, Oz Nahum [EMAIL

[Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread washakie
Hello, I've started to use the convention of making dictionaries to hold my datasets. But I haven't settled on an approach yet, and would like input from people for how they a) handle their arrays of data, and b) how to create pylab arrays from lists of lists, etc. What I generally have is:

Re: [Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread Alan G Isaac
On Fri, 13 Jun 2008, washakie apparently wrote: DataDict={var1:(x1,y1),var2:(x2,y2),var3:(x3,y3)} ; where the x and y's are generally lists. Now that's nice, because I can cycle through the DataDict.keys() to batch plot, etc. But how can I convert the whole dict into a single array

Re: [Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread Chris.Barker
washakie wrote: DataDict={var1:(x1,y1),var2:(x2,y2),var3:(x3,y3)} ; where the x and y's are generally lists. You might be able to use numpy record arrays (recarray). There are lots of good reasons to use numpy arrays other than plotting. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread washakie
Okay?? That does seem to work... I guess I'd better go read up on index_tricks.py ? Thanks. Alan G Isaac wrote: x1,y1,x2,y2 =np.random.random((4,20)) data = dict(var1=(x1,y1), var2=(x2,y2)) a = np.c_[[d for xy in data.values() for d in xy]] a array([[ 0.66613738, 0.39154179,

[Matplotlib-users] Dynamically defining map extents

2008-06-13 Thread washakie
Hello, I've defined the following function to dynamically define map extents based on lon,lat input data. It is not very elegant or robust, but it does seem to work. One issue, however, and it probably is related to something else further down the chain... but every plot ends up being a different