57 virtual bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const;
92 bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const;
211 QString labelSuffix()
const;
221 void setLabelSuffix(
const QString &suffix );
249 double mGridIntervalMinor = 1;
250 double mGridIntervalMajor = 5;
252 double mLabelInterval = 1;
254 QString mLabelSuffix;
257 std::unique_ptr< QgsNumericFormat > mNumericFormat;
259 std::unique_ptr< QgsLineSymbol > mGridMajorSymbol;
260 std::unique_ptr< QgsLineSymbol > mGridMinorSymbol;
293 bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const override;
312 virtual void renderContent(
QgsRenderContext &context,
const QRectF &plotArea );
326 void setSize( QSizeF size );
486 std::unique_ptr< QgsFillSymbol > mChartBackgroundSymbol;
487 std::unique_ptr< QgsFillSymbol > mChartBorderSymbol;
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
@ EveryLabel
Place suffix after every value label.
Base class for 2-dimensional plot/chart/graphs.
double yMaximum() const
Returns the maximum value of the y axis.
QgsPlotAxis & xAxis()
Returns a reference to the plot's x axis.
void setXMinimum(double minimum)
Sets the minimum value of the x axis.
const QgsPlotAxis & xAxis() const
Returns a reference to the plot's x axis.
Qgs2DPlot & operator=(const Qgs2DPlot &other)=delete
Qgs2DPlot cannot be copied.
double xMaximum() const
Returns the maximum value of the x axis.
void setYMaximum(double maximum)
Sets the maximum value of the y axis.
double xMinimum() const
Returns the minimum value of the x axis.
QgsPlotAxis & yAxis()
Returns a reference to the plot's y axis.
double yMinimum() const
Returns the minimum value of the y axis.
Qgs2DPlot(const Qgs2DPlot &other)=delete
Qgs2DPlot cannot be copied.
const QgsPlotAxis & yAxis() const
Returns a reference to the plot's y axis.
void setXMaximum(double maximum)
Sets the maximum value of the x axis.
void setYMinimum(double minimum)
Sets the minimum value of the y axis.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
The QgsMargins class defines the four margins of a rectangle.
Encapsulates the properties of a plot axis.
double gridIntervalMinor() const
Returns the interval of minor grid lines for the axis.
double gridIntervalMajor() const
Returns the interval of major grid lines for the axis.
void setGridIntervalMajor(double interval)
Sets the interval of major grid lines for the axis.
void setGridIntervalMinor(double interval)
Sets the interval of minor grid lines for the axis.
void setLabelInterval(double interval)
Sets the interval of labels for the axis.
double labelInterval() const
Returns the interval of labels for the axis.
QgsPlotAxis & operator=(const QgsPlotAxis &other)=delete
QgsPlotAxis cannot be copied.
QgsPlotAxis(const QgsPlotAxis &other)=delete
QgsPlotAxis cannot be copied.
Manages default settings for plot objects.
Base class for plot/chart/graphs.
QgsPlot()=default
Constructor for QgsPlot.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Container for all settings relating to text rendering.