JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

Support Class for JKQTPCoordinateAxis, which summarizes all properties that define the visual styling of a JKQTPCoordinateAxis used for colorbars outside the plot. More...

#include <jkqtpcoordinateaxesstyle.h>

Inheritance diagram for JKQTPColorbarCoordinateAxisStyle:
[legend]
Collaboration diagram for JKQTPColorbarCoordinateAxisStyle:
[legend]

Public Member Functions

 JKQTPColorbarCoordinateAxisStyle ()
 
 JKQTPColorbarCoordinateAxisStyle (const JKQTBasePlotterStyle &baseStyle)
 
- Public Member Functions inherited from JKQTPCoordinateAxisStyle
 JKQTPCoordinateAxisStyle ()
 
 JKQTPCoordinateAxisStyle (const JKQTBasePlotterStyle &baseStyle)
 
double getArrowSize (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 calculates the size of an arrow in pixels
 
QPen getAxisPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 returns a QPen that can be used for drawing axis lines
 
QPen getMinorTickPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 returns a QPen that can be used for drawing minor axis tick lines
 
QPen getTickPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 returns a QPen that can be used for drawing axis tick lines
 
QPen getZeroAxisPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 returns a QPen that can be used for drawing zero axis lines
 
void loadSettings (const QSettings &settings, const QString &group=QString("axis/"), const JKQTPCoordinateAxisStyle &defaultStyle=JKQTPCoordinateAxisStyle())
 loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
 
void saveSettings (QSettings &settings, const QString &group=QString("axis/")) const
 saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
 

Private Member Functions

void initMembersForColorbars ()
 modifies the members to match the requirements of colorbar axes
 

Additional Inherited Members

- Public Attributes inherited from JKQTPCoordinateAxisStyle
double arrowSizeFactor
 factor used to calculate the size of line arrows
 
bool autoLabelDigits
 when true, the digits of the labels are calculated automatically
 
QColor axisColor
 color of the axis (labels, ticks, axis itself ...)
 
double axisLineOffset
 if non-zero, the line of the coordinate axis is moved outside the plot by this amount [pt]. This does not apply to the zero-axis!
 
QColor colorZeroAxis
 color of 0-line
 
JKQTPCADrawMode drawMode0
 draw mode of the zero axis
 
JKQTPCADrawMode drawMode1
 draw mode of the main (left/bottom) axis
 
JKQTPCADrawMode drawMode2
 draw mode of the secondary (right/top) axis
 
QColor labelColor
 color of the axis label
 
int labelDigits
 digits used for tick labels
 
double labelDistance
 distance between tick label and axis label in pt
 
double labelFontSize
 fontsize of the axis labels
 
JKQTPLabelPosition labelPosition
 position of the axis label
 
double lineWidth
 line width of axis in pt
 
double lineWidthZeroAxis
 line width of 0-line in pt
 
JKQTPGridStyle majorGridStyle
 styling of the major/primary grid
 
JKQTPGridStyle minorGridStyle
 styling of the minor/secondary grid
 
QColor minorTickColor
 color of minor ticks
 
double minorTickInsideLength
 length of a minor axis tick inside the plot border in pt
 
QColor minorTickLabelColor
 color of minor tick labels
 
double minorTickLabelFontSize
 fontsize of the minor axis tick labels
 
bool minorTickLabelFullNumber
 indicates whether the minor tick labels should be full numbers, or just a number between 0..10
 
bool minorTickLabelsEnabled
 if true, the plotter displays minor axis labels as number between 1 and 10 in some cases
 
double minorTickOutsideLength
 length of a minor axis tick outside the plot border in pt
 
unsigned int minorTicks
 number of minor grid lines per axis tick interval
 
double minorTickWidth
 line width of minor ticks in pt
 
unsigned int minTicks
 minimum number of axis ticks
 
bool showZeroAxis
 indicates whether to draw a thick axis line at x=0 (zero axis)
 
Qt::PenStyle styleZeroAxis
 pen style of 0-line
 
QColor tickColor
 color of axis ticks
 
QString tickDateFormat
 format string for date tick labels, see QDateTime::toString() documentation for details on format strings
 
QString tickDateTimeFormat
 format string for datetime tick labels, see QDateTime::toString() documentation for details on format strings
 
QString tickFormatFormat
 format string for std::format tick labels, (see e.g. https://en.cppreference.com/w/cpp/utility/format/formatter#Standard_format_specification ). The first data parameter is the tick value as double an the second is tickUnitName as string. The following image shows an example for "\\texttt{{ y={:*^+8.1f}}}":
 
double tickInsideLength
 length of an axis tick inside the plot border in pt
 
double tickLabelAngle
 rotation angle of tick labels [-180..180], i.e. given in degrees, default is 0 (horizontal)
 
QColor tickLabelColor
 color of axis tick labels
 
double tickLabelDistance
 distance between tick end and label start in pt
 
double tickLabelFontSize
 fontsize of the axis tick labels
 
JKQTPCALabelType tickLabelType
 indicates how to draw the labels
 
JKQTPLabelTickMode tickMode
 mode of the major ticks
 
double tickOutsideLength
 length of an axis tick outside the plot border in pt
 
QString tickPrintfFormat
 format string for printf tick labels, see https://en.wikipedia.org/wiki/Printf_format_string documentation for details on format strings The first data parameter is the tick value as double an the second is tickUnitName as string. The following image shows an example for "y=%+.2f":
 
QString tickTimeFormat
 format string for time tick labels, see QDateTime::toString() documentation for details on format strings
 
double tickWidth
 line width of ticks in pt
 

Detailed Description

Support Class for JKQTPCoordinateAxis, which summarizes all properties that define the visual styling of a JKQTPCoordinateAxis used for colorbars outside the plot.

The major difference between this dervied version and the base JKQTPCoordinateAxisStyle are differently initialized members.

See also
JKQTPCoordinateAxis, Styling System

Constructor & Destructor Documentation

◆ JKQTPColorbarCoordinateAxisStyle() [1/2]

JKQTPColorbarCoordinateAxisStyle::JKQTPColorbarCoordinateAxisStyle ( )

◆ JKQTPColorbarCoordinateAxisStyle() [2/2]

JKQTPColorbarCoordinateAxisStyle::JKQTPColorbarCoordinateAxisStyle ( const JKQTBasePlotterStyle baseStyle)
explicit

Member Function Documentation

◆ initMembersForColorbars()

void JKQTPColorbarCoordinateAxisStyle::initMembersForColorbars ( )
private

modifies the members to match the requirements of colorbar axes


The documentation for this class was generated from the following file: