Esempio n. 1
0
bool KstIfaceImpl::deletePlot(const QString& name) {
   QString window = activeWindow();
   if (!window.isEmpty()) {
     return deletePlot(window, name);
   }

   return false;
}
Esempio n. 2
0
/* Plots the orbit, performs update, plot and, deletePlot */
void orbitPlot(plPlotter* plotter) {
	double time = 0.0;
	long long i = 0;

	for(i = 0; i < FINALTIME/dt; i++) { //dt increments until FINALTIME
		update();
		orbitTime(time);
		if(i % 500 == 0) { //only plot after so many updates
			plot(plotter);
			deletePlot(plotter);
		}
		time = time + dt;
	}
	pl_erase_r(plotter);
}