Plot the label grid.
329 XYPlotActor->GetProperty()->SetLineStipplePattern(0xf0f0);
330 XYPlotActor->GetProperty()->SetLineStippleRepeatFactor(5);
335 XYPlotActor->GetXAxisActor2D()->GetAdjustedRange(xrange);
336 XYPlotActor->GetYAxisActor2D()->GetAdjustedRange(yrange);
337 mynxlabels=
XYPlotActor->GetXAxisActor2D()->GetAdjustedNumberOfLabels();
338 mynylabels=
XYPlotActor->GetYAxisActor2D()->GetAdjustedNumberOfLabels();
354 for (
int i=
XGridLines.size();i<mynxlabels; i++)
357 for (
int i=
YGridLines.size();i<mynylabels; i++)
361 double dx=0.999999*(xrange[1]-xrange[0])/(mynxlabels-1);
362 double x=xrange[0]+dx;
363 for (
int i=1;i<mynxlabels;i++,x+=dx)
368 for (
int i=mynxlabels;i<
XGridLines.size();i++)
374 double dy=0.9999999*(yrange[1]-yrange[0])/(mynylabels-1);
375 double y=yrange[0]+dy;
376 for (
int i=1;i<mynylabels;i++,y+=dy)
381 for (
int i=mynylabels;i<
XGridLines.size();i++)
std::vector< GridLine > YGridLines
vector holding grid lines
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.
std::vector< GridLine > XGridLines
vector holding grid lines