I have a real-time plotting application with multiple plots in one window that 
I would like to speed up some.  The code is

plspage(0,0,2000,430,0,0);
plsdev("xwin");
plsetopt("drvopt","nobuffered=1");
plinit();

plssub(2,1);

while(1){
  //get updated data
  getdataPlot1(data_1);
  getdataPlot2(data_2);

//update subplot 1
pladv(1);
plenv0(0.0, 1000, 0, 1000, 0, 1);
pllab("time","amp","data plot 1");
plshades(data_1, 1000,1000,NULL,0,1000,0,1000,......);

//update subplot 2
pladv(2);
plenv0(0.0, 1000, 0, 1000, 0, 1);
pllab("time","amp","data plot 2");
plshades(data_2, 1000,1000,NULL,0,1000,0,1000,......);
}//end while(1)

Is there a way to get to subplot 1 or subplot 2 without calling pladv and 
having the entire plot, axis, title, etc. erased?  Can I avoid having to recall 
plenv0 and pllab?  Is there a more efficient way to do real-time plotting?

Thank you for your assistance.

Tom


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to