void LinePlot::drawPlot(Frame* frame) { Frame innerFrame = getPlotArea(frame); // Obtain mins and maxes from the data double minXdata, maxXdata, minYdata, maxYdata; sl.findMinMax(minXdata,maxXdata,minYdata,maxYdata); // Assume these will be used as boundaries of the plots double minX=minXdata, maxX=maxXdata, minY=minYdata, maxY=maxYdata; // See if the user overrode the axes limits if (fixedXaxis) { minX = minx; maxX = minx + width; } if (fixedYaxis) { minY = miny; maxY = miny+height; } // Use default min/max sl.drawInFrame(innerFrame,minX,maxX,minY,maxY); setXAxis(minX, maxX); setYAxis(minY, maxY); drawAxis(frame); }
void SurfacePlot::drawPlot(Frame* frame) { Frame innerFrame = getPlotArea(frame); // Draw Bitmap Bitmap b(innerFrame.lx(),innerFrame.ly(),innerFrame.ux(),innerFrame.uy(),icm); b.oversample(osr,osc); b.useBoxes(boxes); innerFrame << b; drawAxis(frame); }
/// Get the Frame around which the axes will be drawn. vdraw::Frame getPlotArea(vdraw::Frame& frame) { return getPlotArea(&frame); }