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
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.
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.
Oceanographe
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 (
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:
Data
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 PROT
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. Th
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 lik
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
> >
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. O
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, t
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
--
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
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
Andr
Hi Stan,
On Fri, Jun 13, 2008 at 2:09 PM, Stan West wrote:
> 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
> p
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
self.SelectObj
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
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 creat
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 t
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:
>
> http://www.nabble.com/Legend-for-a-scatter-plot-based-on-symbo
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 plo
Hello, matplotlib-users.
Hi! I'm using matplotlib to display dynamic graph of incoming data.
Separate window with embedded graph in it.
Everything okay, except of too much, or too less space available for
graph data, since it passed as percentage. For my case better to say
that 20px from lef
22 matches
Mail list logo