Axis

A description for Axis.

class Axis : public WorksheetElement

Axis for a cartesian coordinate system.

Note, this class doesn’t define the acttualy coordinate system and the data range to be plotted - this is done in CartesianPlot. In this class only the properties and the drawing of the visual object “axis” is handled.

Public Functions

virtual QIcon icon() const override

Returns an icon to be used in the project explorer.

virtual QMenu *createContextMenu() override

Return a new context menu.

The caller takes ownership of the menu.

virtual void setZValue(qreal) override

overrides the implementation in WorksheetElement and sets the z-value to the maximal possible, axes are drawn on top of all other object in the plot.

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.