On Sun, Oct 12, 2008 at 9:01 PM, bwgoudey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  At the moment, I have a graph which has an un labelled x-axis and all i'm
> drawing is a filled green rectangle every so often. I would like make it so
> that when I zoom in to my graph past a certain threshold, the rectangles
> change so that the first half is a different colour to the second half and
> the x-axis is now labelled. Does anyone have any suggestions on how I could
> implement this? If my explanation hasn't made sense, or lacks details, feel
> free to ask for more.

the clipped line demo at

  http://matplotlib.sourceforge.net/examples/pylab_examples/clippedline.py

shows how to change properties depending on the zoom level.  i doesn't
d it *exactly* as you indicate, but you give you enough to go on.

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to