[Matplotlib-users] callback ideas (artist.Artist, mostly)

2010-10-22 Thread David Carmean

Would others find it useful to have most/all of the artist.Artist 
subclasses updated to use the new (weak-ref) cbook.CallbookRegistry 
callbacks?

I'm working on a tool to tweak matplotlib figure styles/colors, etc, 
and I find it very useful to selectively enable "auto-updating" in 
my own toolkit such that the figure is updated on each change that 
I make.  Although I'm able to do this in my own toolkit's wrapper 
layer, I would rather do it within matplotlib itself.

My thoughts are that at the least, I'd want parents to be able to 
subscribe to signals from children, and possibly vice-versa.  Then 
at the top, have the Figure optionally add it's draw() method as 
a callback to it's child axes/whatever instances.  

I'll probably start working on some patches for own use anyway, 
but if there's interest, I'll keep them polished/tested and 
submit them for review.




--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] little help with timeseries and spans

2010-03-26 Thread David Carmean

I need help finding the right path to accomplish some custom "visual masking" 
and corresponding array-mask construction:


For much of what I need, scikits.timeseries initially sounded useful but 
either I misunderstand how to use it, or it just can't do most of what I want, 
which is:

1: create/apply a mask that invalidates/masks the data that is outside
normal business hours; i.e. mask out the weekends and anything between
18:00 and 06:00 the next day.

2: The second task is to create vertical spans in the plot to show the mask 
visually.

So, for #2 what I need is essentially two collections of axvspan patches:

Axvspan collection 'a' begins at 17h00 each Friday, and ends at 09h00 each 
Monday.
Collection 'b' begins at 17h00 each weekday, and ends at 09h00 the following 
morning, but 
is masked out by collection 'a'.

Axes.fill_betweenx() looks like it's *not* what I need

Most of this app operates at finer granularity than what pyplot provides, so 
I'm dealing directly 
with the individual axes and artists; the solution needs to work in that domain.

So I'd be grateful for ideas

Thanks.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Speaking of "many" ... line collections? (was: Put many graphs...)

2010-03-24 Thread David Carmean

At what point is a line Collection useful?  


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Why the name Axes?

2010-03-23 Thread David Carmean

How was the name Axes chosen for the Axes component?  :)

It did confuse me for at least two days while I was first learning 
mpl.  It's in my thoughts again as I'm writing some wrapper classes for 
it; what were the alternatives considered, even after the fact? :)




--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mpl UML?

2010-03-22 Thread David Carmean
On Sun, Mar 21, 2010 at 05:52:55PM -0500, Ryan May wrote:
> On Sun, Mar 21, 2010 at 3:35 PM, David Carmean  wrote:
 [snip]
> > One of the things I'm trying to figure out is whether I can build
> > a graphic in "reverse order".  The standard M.O. seems to be to
 [snip]
> Certainly things like lines, collections can be added to existing axes
> (and don't need one around to be created).  This is actually what's
> used under the hood. You *should* also be able to create an axes
> object and then set its figure, but I've never personally done it.
> 
> What you really want to look at are a lot of Axes methods:
> set_figure()
> add_artists()
> add_collection()
> add_line()

I did spend a couple of hours looking at the code, and there are a few 
places where the child components do depend on data/methods in the parent 
container, even though the "child" objects can be created without the 
parent; I'm about 80% sure that there are no guards against calling those 
child methods without a parent, so it seems safer to rework my model to 
use the top-down approach.

Perhaps I'll find some time soon to learn enough to create some unit tests that 
confirm/refute the above, and if true I'll file some bugs. 




--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] mpl UML?

2010-03-21 Thread David Carmean

Has anyone seen/created any UML models/diagrams for Matplotlib?  

I'm currently doing so to help me understand how to use it in an 
application, but wondered if somebody has already built the wheel 
that I'm trying to invent.

One of the things I'm trying to figure out is whether I can build 
a graphic in "reverse order".  The standard M.O. seems to be to 
traverse a self-building tree by invoking convenience methods on 
each new child, Figure-->Subplot-->plot_date, etc.

What I'm looking to do is build from the bottom up, e.g. create a line 
or scatter plot instance *first*, then append that to the children of 
an existing Axes instance, which is in-turn appended to the childrend of 
a Figure instance.  

Thanks.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Suggestion for filtering by calendar?

2010-02-16 Thread David Carmean

I have a time-series dataset for which I need to make several plots; 
some of them will use all of the data, but others need not only to 
show just the usual business hours, but also take business holidays 
into account.  I thoght this might be sufficiently common in this 
community that somebody could easily point me to a python idiom/recipe 
they've used that I could extend to use masked arrays.

FWIW, the idea is not that I want to skip those time periods on the 
visualizations--and thus the recipes which treat the data as 
non-timeseries and construct custom ticks are not the solution for me.
One of the tasks will be to use a fill to shade in these "working hours" 
for some of the plots.  Another will be to calculate and plot running 
averages that exclude non-working hours.

Thanks.



--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Newb: can I plot() just once but render/save to disk different "zooms"?

2010-02-05 Thread David Carmean

Hi,

I just emigrated from Ploticus last week :)   Am working on a project where 
I'm plotting the contents of a large .csv file with about 250,000 cells
(unix system 5-minute load averages from a set of 50 servers, for about 
three weeks data now). 

I'm developing this in Spyder/Python(x,y)--completely unknown to me until 
last week--and the pan/zoom capability makes me wish/wonder two things:

1: I wish I could interactively save the zoomed view to disk, and

2: This behavior hints at the possiblity of a better way to go back 
and plot 15 1-day views of the original plot, than slicing up the 
source array and re-plotting.


I'm .. so new to matplotlib/numpy that I'm sure I'm missing some 
key concepts/terminology that, once identified, will let me find my 
way to what I need to know.   For example, I'm terribly confused right 
now by Axes.get_axes().

Which classes/methods/examples/gallery examples should I look at?

Thanks.



--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users