Hi all,

I'm thinking about writing an interactive data plotting application
with plplot.  Data is ngspice simulation results.  I want it to be an
easy-to-use application tailored for ngspice with features useful when
exploring circuit simulation results.

I'm writing to the list to get some advice about implementation
details of the features.

Some of the features I want to implement are easy with plplot
(multiple subpages, Bode plots).  But I want to ask your advice about
implementing some other features, specifically:
* zoom in/out;
* scrolling when zoomed plot doesn't fit into the window.

As far as I have found from documentation, there is no built-in
support for zoom.  (Well, there is plsdiplt(), but it zooms the whole
plot.  I want to zoom into data, leaving axes where they were.)
Nevertheless, zoom should be easy to implement with just re-plotting
the "visible" part of the data array.

The most important feature that I miss in other data plotting
applications (and the reason to write my own) is the ability to make
measurements on the plot.  That is, I want the user to be able to pick
data points on the plot to implement the following features:
* place a label on the plot with the actual data for the point;
* find the distance on X and Y axes between two points.

Here's a quick mockup of what I want:
http://img29.imageshack.us/img29/5403/plplot.png

The problem with plGetCursor() is that it receives the event itself.
If I create the window myself with GTK or Qt, then my code will
receive the event.  After reading the source, it seems that
plTranslateCursor() should do the task.

Can you suggest what driver should I use?  I think about using GTK and
extcairo.  But in future I want to port the application to Windows.
Should a Qt application be easier to port than a GTK one?

Regards,
Dmitri Gribenko

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to