Maybe using “genfromtxt" is simpler as a way to get going, see below for a
fragment of script? It should be able to read a CSV file since it’s just a
comma delimited text file. You might need to look up how to set the delimiter
character.
regards
Tony Rollet
> #!/usr/bin/env python
> """
> sim
I have studied how to make floating axes with curvilinear grids. However, I
cannot figure out how to achieve my desired goals.
The code snippet below is a distillation that takes me part-way there. I cannot
seem to access/modify the radial tick labels and their locations.
I am plotting data in
; of the talented names I've been seeing on github and the mailing list
> > lately.
> >
>
> On a slightly different, but related topic: is there any chance the
> entries (or at least the winning entries) to the plotting contest could
> be posted online?
>
Yes, We
I had found it reasonably straightforward to install matplotlib on 10.6 (much
harder on 10.7 but that's a story that somebody more versed than I should
tell). I was stumped by trying to install basemap because I took the easy way
out with the Geos dependency and installed the latter via mac por
ib. wxPython provides the rest of the GUI
elements. The entirety of the program except for the engineering
backend (which isn't exposed in the viewer anyway) is written in
Python.
If you can't get to a Windows box, then just visit
http://www.convergent.ca/raven
tation, but frankly our matplotlib bits are pretty stable now
and we haven't had to use the documentation for a while (perhaps it's
better now).
Good luck! We've been very happy with our design choices, and get
nothing but positive feed
Dear all,
I am trying to plot a wind field using the quiver function and would like to color the wind arrows according to the wind strength. I have gone through the online matplotlib material, but have not been able to work out how to do it so far.
Would it be possible for someone to give
...@jpl.nasa.gov>>
Cc:
"matplotlib-users@lists.sourceforge.net<mailto:matplotlib-users@lists.sourceforge.net>"
mailto:matplotlib-users@lists.sourceforge.net>>
Subject: Re: [Matplotlib-users] Input array dimensions for contour or contourf
On Tue, Ma
The following program seems to work with contour/contourf. However the
documentation for the contourf function states
contour(X,Y,Z)
"X, Y, and Z must be arrays with the same dimensions."
I am finding that contour works if the dimension of X and Y are 1, but Z must
be two-dimensional. The foll
Hi Che, I think you got bit by the "reply to list" non-feature of this list...
>> In ours, we catch the mpl button down event and after establishing a
>> hit on the legend do:
>
> I was using the pick event, not the button down event. How do you
> "establish a hit on the legend" in the button dow
On Tue, Mar 24, 2009 at 11:37 PM, C M wrote:
> Using mpl 0.98.5.2 in OO mode with wxAgg backend.
>
> I'm trying to make my legends draggable. It works, but
> there is a some inaccuracy with positioning. As I drag it,
> the cursor "outruns" the position of the legend, and that
> error grows the f
Hi Adam,
On Sun, Oct 26, 2008 at 4:34 PM, Adam <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to make myself a set of widgets for the first time.
> I've gotten to the point that I can draw rectangles and lines and make
> them do the right things when re-drawing figures, zooming, etc., but
> I'm st
On Wed, Oct 22, 2008 at 11:00 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Some of the documentation has not yet been reformatted to reST for Sphinx.
>
> There is a status page here:
>
> http://matplotlib.sourceforge.net/devel/outline.html
Ah, thanks!
[snip]
> As to whether we provide the
While I like the redesign (and Sphinx in general), it seems some
information has gone missing, particularly with regards to the API
documentation.
For example, ticker.py has a tonne of useful information in the
docstring about how to set up formatters and tickers. For some reason
I just cannot fi
On Wed, Oct 22, 2008 at 7:27 AM, Jeffrey Fogel
<[EMAIL PROTECTED]> wrote:
> I've having a problem creating multiple x-axis and I'm hoping someone
> here will be able to help me. I have two directly correlated values
> (z and N) that I am using as the independent variables. What I would
> like to
he mpl line directly.
At any rate, I've attached some code to this email which illustrates what I was
talking about, but it's not runnable and it references other files which I
haven't included. Still you should be able to get the idea.
Hope this helps,
Anthony.
> -Original Mes
On Wed, Sep 24, 2008 at 8:28 AM, C M <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 23, 2008 at 7:22 PM, Anthony Floyd <[EMAIL PROTECTED]> wrote:
>> On Tue, Sep 23, 2008 at 3:28 PM, C M <[EMAIL PROTECTED]> wrote:
[snip]
> Thank you for the help. Unfortunately, I used s
it in the __init__ is:
self.Position(mouseLocation, (10,10))
HTH,
Anthony.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &
On Tue, Sep 16, 2008 at 8:17 PM, Sebastien Binet
<[EMAIL PROTECTED]> wrote:
> Hi Anthony,
>
>> As you've already been told, you can't pickle/shelve mpl objects. Our
>> solution to this is to have a native python shadow object that
>> contains all the bits a
On Tue, Sep 16, 2008 at 3:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I would like to save preliminary figures for later processing and
> refinement with matplotlib. Is there a way to save or pickle a figure
> object and later reload it. Matlab has a feature like that and and I wa
ng it (the toolbar) in your program.
Instead you can use your custom buttons, keypresses, etc, to tie into
the class' methods. We've done that with our app, and it works quite
nicely. In fact, you can borrow the bits you need from that class to
create
Oops, forgot to cc the list...
-- Forwarded message --
From: Anthony Floyd <[EMAIL PROTECTED]>
Date: Wed, Aug 6, 2008 at 12:28 PM
Subject: Re: [Matplotlib-users] Moving legend with mouse?
To: Søren Nielsen <[EMAIL PROTECTED]>
On Fri, Aug 1, 2008 at 6:10 AM, Søren Nie
On Wed, Mar 26, 2008 at 10:38 PM, sa6113 <[EMAIL PROTECTED]> wrote:
>
> I use matplotlib and Backend Agg to draw a plot , I want to show this plot in
> my GUI in specific area (Plot area) , I need to have the image object in
[snip]
> Is it clear?
Not to me :)
Do you mean that you've already
Forgot to reply-to-list...
-- Forwarded message --
From: Anthony Floyd <[EMAIL PROTECTED]>
Date: Wed, Mar 26, 2008 at 4:54 PM
Subject: Re: [Matplotlib-users] load data from string or array to Image
To: sa6113 <[EMAIL PROTECTED]>
On Wed, Mar 26, 2008 at 1:33 AM, sa
On Thu, Mar 6, 2008 at 3:00 AM, <[EMAIL PROTECTED]> wrote:
> "Anthony Floyd" <[EMAIL PROTECTED]> writes:
>
> > I would like to 'watermark' a plot. That is, display an image 'under'
> > several lines. [...] I've tried using figur
On Thu, Mar 6, 2008 at 3:00 AM, <[EMAIL PROTECTED]> wrote:
> "Anthony Floyd" <[EMAIL PROTECTED]> writes:
>
> > I would like to 'watermark' a plot. That is, display an image 'under'
> > several lines. [...] I've tried using figur
broken, don't fix'). At the moment I'm not too worried about
keeping the axes static while panning and zooming ... I've already
customized backend_bases and I can skip the watermark axes when the
zoom and pan events are processed. But it sure would be nice to be
abl
h
the pylab syntax, but I'm puzzled that you haven't used twinx (or in
API parlance, sharex) anywhere. Regardless, the API code for
overlaying subplots is of the form:
figure.add_axes(axes1.get_position(), sharex=axes1, frameon=False,
label='someUniqueString')
Hope this helps,
Anthony
>Ah, now I see the syntax for using axes(). However, if I'm embedding the
> plots in a wxPython panel, I'm not using pylab. In this environment I also
> haven't yet figured out how to add axis labels or specify the range of each
> axis. Within pylab on stand-alone test apps it works fine.
Chec
o particular speed advantage, but it is nice and concise,
> if it yields what you actually want.
Interesting! No, I wasn't aware. I'll need to think a bit if that fits
better into the framework we have here.
a single series in one manner and
multiple series in another.
Thanks,
Anthony.
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configurati
(lines[series])
Instead of using:
line_segments = ...
ax.add_collection(line_segments)
Can anyone give me advice if I should code targeting collections or to
just use my current single-series code?
Thanks,
Anthony.
--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd
Hi!
> 0x9c5a8ac>] >>> set(gca(), xticklabels=[]) Traceback (most
> recent call last):
> File "", line 1, in
> TypeError: set() does not take keyword arguments
>
> Can somebody help me understand what goes wrong here?
Python (since the docs were written) now has a built-in type called
'set'.
Hi Anthony,
> legend to be at the same height as the top of the axis. How
> do I go about moving the legend once I've created it?
myLegend._loc=(x,y)
myFigure.draw()
There doesn't seem to be a .moveLegend() or equivalent method, so I
always update the semi-private ._loc and o
eated it?
This is a legend that is created on the figure, obviously. :)
Thanks,
Anthony
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse01200
t; -Original Message-
> From: Anthony M. Floyd
> Sent: July 12, 2007 4:37 PM
> To: matplotlib-users@lists.sourceforge.net
> Subject: [Matplotlib-users] Properly aligned tick labels on the inside
>
> Hi All,
>
> I'm trying to plot tick labels on the inside
can do this by using axis.set_offset_position('...'), but
I've been unable to get that to do anything in my tests using pylab.
I can post code if it'll be helpful.
Thanks,
Anthony.
--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Van
do the things you're talking about, but as far as
I know there's no "one way".
Good luck,
Anthony.
--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Vancouver BC V6T 1Z3
CANADA
Email: [EMAIL PROTECTED] | Tel: 604-822-9682
WWW:
there an
easier (erm, and better!) way to accomplish what I've done?
Thanks,
Anthony.
--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Vancouver BC V6T 1Z3
CANADA
Email: [EMAIL PROTECTED] | Tel: 604-822-9682
WWW: http://www.convergent.ca
39 matches
Mail list logo