! Sets the viewport of this QCustomPlot. Usually users of QCustomPlot don't need to change the viewport manually. The viewport is the area in which the plot is drawn. All mechanisms, e.g. margin calculation take the viewport to be the outer border of the plot. The viewport normally is the rect() of the QCustomPlot widget, i.e. a rect with top left (0, 0) and size of the QCustomPlot widg
| 14118 | savePdf, etc. by temporarily changing the viewport size. |
| 14119 | */ |
| 14120 | void QCustomPlot::setViewport(const QRect &rect) |
| 14121 | { |
| 14122 | mViewport = rect; |
| 14123 | if (mPlotLayout) |
| 14124 | mPlotLayout->setOuterRect(mViewport); |
| 14125 | } |
| 14126 | |
| 14127 | /*! |
| 14128 | Sets the device pixel ratio used by the paint buffers of this QCustomPlot instance. |
nothing calls this directly
no test coverage detected