20#ifndef JKQTPCOORDINATEAXESSTYLE_H
21#define JKQTPCOORDINATEAXESSTYLE_H
26#include "jkqtplotter/jkqtptools.h"
27#include "jkqtplotter/jkqtplotter_imexport.h"
28#include "jkqtplotter/jkqtplotter_configmacros.h"
29#if __cplusplus >= 202002L
31# ifdef __cpp_lib_format
65 void saveSettings(QSettings& settings,
const QString& group=QString(
"grid/"))
const;
109 void saveSettings(QSettings& settings,
const QString& group=QString(
"axis/"))
const;
178#if __cplusplus >= 202002L || DOXYGEN
179#if defined(__cpp_lib_format) || DOXYGEN
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpbaseplotterstyle.h:47
Support Class for JKQTPCoordinateAxis, which summarizes all properties that define the visual styling...
Definition jkqtpcoordinateaxesstyle.h:258
void initMembersForColorbars()
modifies the members to match the requirements of colorbar axes
JKQTPColorbarCoordinateAxisStyle()
JKQTPColorbarCoordinateAxisStyle(const JKQTBasePlotterStyle &baseStyle)
Support Class for JKQTPCoordinateAxis, which summarizes all properties that define the visual styling...
Definition jkqtpcoordinateaxesstyle.h:87
unsigned int minTicks
minimum number of axis ticks
Definition jkqtpcoordinateaxesstyle.h:189
Qt::PenStyle styleZeroAxis
pen style of 0-line
Definition jkqtpcoordinateaxesstyle.h:232
JKQTPLabelPosition labelPosition
position of the axis label
Definition jkqtpcoordinateaxesstyle.h:124
JKQTPCADrawMode drawMode2
draw mode of the secondary (right/top) axis
Definition jkqtpcoordinateaxesstyle.h:142
int labelDigits
digits used for tick labels
Definition jkqtpcoordinateaxesstyle.h:112
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.
double tickWidth
line width of ticks in pt
Definition jkqtpcoordinateaxesstyle.h:161
double minorTickOutsideLength
length of a minor axis tick outside the plot border in pt
Definition jkqtpcoordinateaxesstyle.h:198
QString tickPrintfFormat
format string for printf tick labels, see https://en.wikipedia.org/wiki/Printf_format_string document...
Definition jkqtpcoordinateaxesstyle.h:177
double getArrowSize(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
calculates the size of an arrow in pixels
JKQTPGridStyle minorGridStyle
styling of the minor/secondary grid
Definition jkqtpcoordinateaxesstyle.h:227
QColor axisColor
color of the axis (labels, ticks, axis itself ...)
Definition jkqtpcoordinateaxesstyle.h:204
QString tickDateFormat
format string for date tick labels, see QDateTime::toString() documentation for details on format str...
Definition jkqtpcoordinateaxesstyle.h:173
JKQTPGridStyle majorGridStyle
styling of the major/primary grid
Definition jkqtpcoordinateaxesstyle.h:225
double tickLabelDistance
distance between tick end and label start in pt
Definition jkqtpcoordinateaxesstyle.h:206
double lineWidthZeroAxis
line width of 0-line in pt
Definition jkqtpcoordinateaxesstyle.h:167
JKQTPCoordinateAxisStyle()
unsigned int minorTicks
number of minor grid lines per (major) axis tick interval
Definition jkqtpcoordinateaxesstyle.h:194
bool minorTickLabelsEnabled
if true, the plotter displays minor axis labels as number between 1 and 10 in some cases
Definition jkqtpcoordinateaxesstyle.h:116
QPen getZeroAxisPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
returns a QPen that can be used for drawing zero axis lines
QString tickFormatFormat
format string for std::format tick labels, (see e.g. https://en.cppreference.com/w/cpp/utility/format...
Definition jkqtpcoordinateaxesstyle.h:182
double minorTickInsideLength
length of a minor axis tick inside the plot border in pt
Definition jkqtpcoordinateaxesstyle.h:202
double tickOutsideLength
length of an axis tick outside the plot border in pt
Definition jkqtpcoordinateaxesstyle.h:196
bool showZeroAxis
indicates whether to draw a thick axis line at x=0 (zero axis)
Definition jkqtpcoordinateaxesstyle.h:134
double labelDistance
distance between tick label and axis label in pt
Definition jkqtpcoordinateaxesstyle.h:208
QColor colorZeroAxis
color of 0-line
Definition jkqtpcoordinateaxesstyle.h:230
double minorTickWidth
line width of minor ticks in pt
Definition jkqtpcoordinateaxesstyle.h:155
QColor tickColor
color of axis ticks
Definition jkqtpcoordinateaxesstyle.h:157
QColor minorTickLabelColor
color of minor tick labels
Definition jkqtpcoordinateaxesstyle.h:153
JKQTPLabelTickMode tickMode
mode of the major ticks
Definition jkqtpcoordinateaxesstyle.h:121
double minorTickLabelFontSize
fontsize of the minor axis tick labels
Definition jkqtpcoordinateaxesstyle.h:132
QString tickDateTimeFormat
format string for datetime tick labels, see QDateTime::toString() documentation for details on format...
Definition jkqtpcoordinateaxesstyle.h:175
QColor tickLabelColor
color of axis tick labels
Definition jkqtpcoordinateaxesstyle.h:159
bool autoLabelDigits
when true, the digits of the labels are calculated automatically
Definition jkqtpcoordinateaxesstyle.h:114
JKQTPCALabelType tickLabelType
indicates how to draw the labels
Definition jkqtpcoordinateaxesstyle.h:118
JKQTPCADrawMode drawMode1
draw mode of the main (left/bottom) axis
Definition jkqtpcoordinateaxesstyle.h:140
double axisLineOffset
if non-zero, the line of the coordinate axis is moved outside the plot by this amount [pt]....
Definition jkqtpcoordinateaxesstyle.h:234
JKQTPCADrawMode drawMode0
draw mode of the zero axis
Definition jkqtpcoordinateaxesstyle.h:149
double tickLabelFontSize
fontsize of the axis tick labels
Definition jkqtpcoordinateaxesstyle.h:130
QString tickTimeFormat
format string for time tick labels, see QDateTime::toString() documentation for details on format str...
Definition jkqtpcoordinateaxesstyle.h:171
JKQTPCoordinateAxisStyle(const JKQTBasePlotterStyle &baseStyle)
QPen getMinorTickPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
returns a QPen that can be used for drawing minor axis tick lines
double arrowSizeFactor
factor used to calculate the size of line arrows
Definition jkqtpcoordinateaxesstyle.h:165
double tickLabelAngle
rotation angle of tick labels [-180..180], i.e. given in degrees, default is 0 (horizontal)
Definition jkqtpcoordinateaxesstyle.h:222
double tickInsideLength
length of an axis tick inside the plot border in pt
Definition jkqtpcoordinateaxesstyle.h:200
QPen getTickPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
returns a QPen that can be used for drawing axis tick lines
QColor labelColor
color of the axis label
Definition jkqtpcoordinateaxesstyle.h:128
QColor minorTickColor
color of minor ticks
Definition jkqtpcoordinateaxesstyle.h:151
QPen getAxisPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
returns a QPen that can be used for drawing axis lines
double lineWidth
line width of axis in pt
Definition jkqtpcoordinateaxesstyle.h:163
bool minorTickLabelFullNumber
indicates whether the minor tick labels should be full numbers, or just a number between 0....
Definition jkqtpcoordinateaxesstyle.h:136
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
double labelFontSize
fontsize of the axis labels
Definition jkqtpcoordinateaxesstyle.h:126
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
Support Class for JKQTPCoordinateAxis, and summarizes all properties that define the visual styling o...
Definition jkqtpcoordinateaxesstyle.h:45
Qt::PenStyle lineStyle
line stye of the grid lines
Definition jkqtpcoordinateaxesstyle.h:74
double lineWidth
width of the grid lines (in pixel)
Definition jkqtpcoordinateaxesstyle.h:72
void saveSettings(QSettings &settings, const QString &group=QString("grid/")) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
bool enabled
indicates whether to draw the major grid lines
Definition jkqtpcoordinateaxesstyle.h:68
QColor lineColor
color of the grid
Definition jkqtpcoordinateaxesstyle.h:70
void loadSettings(const QSettings &settings, const QString &group=QString("grid/"), const JKQTPGridStyle &defaultStyle=JKQTPGridStyle())
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTPGridStyle(bool isMajor=true)
QFlags< JKQTPCADrawModeElements > JKQTPCADrawMode
drawing mode for a coordinate axis
Definition jkqtptools.h:430
JKQTPLabelPosition
position of the axis labels
Definition jkqtptools.h:508
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89
JKQTPCALabelType
display mode for the (axis) labels
Definition jkqtptools.h:449
JKQTPLabelTickMode
mode of the axis ticks
Definition jkqtptools.h:476