Add a pair of x/y data to the figure.
295 assert(x.size()==y.size());
297 plot.X->SetNumberOfTuples(N);
298 plot.Y->SetNumberOfTuples(N);
301 double xmax=-1.0e100;
303 double ymax=-1.0e100;
306 for (
int i=0; i<N; i++)
308 plot.X->InsertTuple1(i,x[i]);
309 plot.Y->InsertTuple1(i,y[i]);
310 xmin=std::min(xmin,x[i]);
311 ymin=std::min(ymin,y[i]);
312 xmax=std::max(xmax,x[i]);
313 ymax=std::max(ymax,y[i]);
void AddPlot()
Internal addplot after plot data have been filled.
struct vtkfig::XYPlot::@4 PlotState
General state of the XYPlot.
vtkSmartPointer< vtkXYPlotActor > XYPlotActor
The main graphics actor.
int num_curves
Number of all curves including grid lines.
size_t num_plots
Number of "real" plots.
std::vector< PlotData > AllPlotData
vector holding data of all plots