Re: [Matplotlib-users] Plotting from a data file

2015-08-14 Thread Anthony Rollett
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

[Matplotlib-users] Curvilinear grid with modified axes labels

2014-09-07 Thread Mannucci, Anthony J (335G)
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

Re: [Matplotlib-users] Reports from SciPy 2013

2013-07-02 Thread Anthony Scopatz
; 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

[Matplotlib-users] installing basemap on osx 10.6

2012-12-29 Thread Anthony Rollett
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

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Anthony Floyd
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

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Anthony Floyd
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

[Matplotlib-users] quiver colors

2011-10-19 Thread David Anthony Lavers
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

Re: [Matplotlib-users] Input array dimensions for contour or contourf

2011-06-06 Thread Mannucci, Anthony J (335G)
...@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

[Matplotlib-users] Input array dimensions for contour or contourf

2011-05-31 Thread Mannucci, Anthony J (335G)
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

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread Anthony Floyd
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

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread Anthony Floyd
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

Re: [Matplotlib-users] Event handling, API programming

2008-10-29 Thread Anthony Floyd
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

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-22 Thread Anthony Floyd
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

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-22 Thread Anthony Floyd
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

Re: [Matplotlib-users] multiple x axis

2008-10-22 Thread Anthony Floyd
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

Re: [Matplotlib-users] save or pickle figure object

2008-10-09 Thread Anthony Floyd
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

Re: [Matplotlib-users] place a wxPopupWindow based on pick event location

2008-09-24 Thread Anthony Floyd
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

Re: [Matplotlib-users] place a wxPopupWindow based on pick event location

2008-09-23 Thread Anthony Floyd
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 &

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Anthony Floyd
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

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Anthony Floyd
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

Re: [Matplotlib-users] Custom pan button

2008-08-11 Thread Anthony Floyd
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

[Matplotlib-users] Fwd: Moving legend with mouse?

2008-08-06 Thread Anthony Floyd
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

Re: [Matplotlib-users] Fwd: load data from string or array to Image

2008-03-27 Thread Anthony Floyd
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

[Matplotlib-users] Fwd: load data from string or array to Image

2008-03-26 Thread Anthony Floyd
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

Re: [Matplotlib-users] Watermarking figures/axes

2008-03-14 Thread Anthony Floyd
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

Re: [Matplotlib-users] Watermarking figures/axes

2008-03-13 Thread Anthony Floyd
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

[Matplotlib-users] Watermarking figures/axes

2008-03-05 Thread Anthony Floyd
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

Re: [Matplotlib-users] more than two y-axes

2008-02-01 Thread Anthony Floyd
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

Re: [Matplotlib-users] Grid Display

2007-11-27 Thread Anthony Floyd
>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

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
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.

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
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

[Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
(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

Re: [Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Anthony M. Floyd
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'.

Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Anthony M. Floyd
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

[Matplotlib-users] Reposition a Legend

2007-07-20 Thread Anthony
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

Re: [Matplotlib-users] Properly aligned tick labels on the inside

2007-07-13 Thread Anthony M. Floyd
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

[Matplotlib-users] Properly aligned tick labels on the inside

2007-07-12 Thread Anthony M. Floyd
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

Re: [Matplotlib-users] object canvas

2007-07-05 Thread Anthony M. Floyd
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:

[Matplotlib-users] "Pick"-ing axis labels or tick labels

2007-05-23 Thread Anthony M. Floyd
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