On Tuesday, February 3, 2009 at 17:34:02 (+0100) Vadim Zeitlin writes:
 >  Thanks for your answer and advice! I've started looking into actually
 > doing something like this and realized that there is actually a third
 > potential problem: is it possible to provide the plot data on demand with
 > PLplot? E.g. with these financial plots you may have data for some market
 > price from 1990 to 2008 with the resolution of one day. Usually the user of
 > the application would just look at some small subrange of this interval,
 > e.g. a couple of last months but I'd like to allow zooming and panning the
 > graph to show more (or less) values and would like to avoid creating all
 > the plot points unnecessarily and only do it when they're about to be
 > shown. Would you have any idea about how could this be done?

Dunno about wx, but with TK you can easily hijack the default key/mouse
handlers with those of your own choosing.  In addition the TK bindings have a
plw::set_zoom_handler proc so that you can reuse some of the native zoom
logic.  By doing your own key/mouse handling, there's no limit to the kinds of
special effects you can mix in, including selective plotting of data as you
mention.

So one can imagine a tool that models zillions of plot elements, each of which
only become visible once zoomed to a sufficiently high resolution.  This gets
around the limitations of the 16-bit driver interface (regarding accuracy at
high zoom levels) and performance implications of plotting enormous quantities
of sub-pixel-resolution (therefore redundant) plot elements.

-- 
Maurice LeBrun

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to