mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
fixed missing documentation and compile issue
This commit is contained in:
parent
1dc569d534
commit
8ff150ab01
@ -370,8 +370,8 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPCoordinateAxis: public QObject {
|
|||||||
inline QString getTickPrintfFormat() const { return this->axisStyle.tickPrintfFormat; }
|
inline QString getTickPrintfFormat() const { return this->axisStyle.tickPrintfFormat; }
|
||||||
/** \copydoc JKQTPCoordinateAxisStyle::tickMode */
|
/** \copydoc JKQTPCoordinateAxisStyle::tickMode */
|
||||||
inline JKQTPLabelTickMode getTickMode() const { return this->axisStyle.tickMode; }
|
inline JKQTPLabelTickMode getTickMode() const { return this->axisStyle.tickMode; }
|
||||||
#if __cplusplus >= 202002L
|
#if __cplusplus >= 202002L || DOXYGEN
|
||||||
# ifdef __cpp_lib_format
|
# if defined(__cpp_lib_format) || DOXYGEN
|
||||||
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
|
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
|
||||||
inline QString getTickFormatfFormat() const { return this->axisStyle.tickFormatFormat; }
|
inline QString getTickFormatfFormat() const { return this->axisStyle.tickFormatFormat; }
|
||||||
# endif
|
# endif
|
||||||
@ -618,8 +618,8 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPCoordinateAxis: public QObject {
|
|||||||
|
|
||||||
/** \copydoc JKQTPCoordinateAxisStyle::tickPrintfFormat */
|
/** \copydoc JKQTPCoordinateAxisStyle::tickPrintfFormat */
|
||||||
void setTickPrintfFormat(const QString& __value);
|
void setTickPrintfFormat(const QString& __value);
|
||||||
#if __cplusplus >= 202002L
|
#if __cplusplus >= 202002L || DOXYGEN
|
||||||
# ifdef __cpp_lib_format
|
# if defined(__cpp_lib_format) || DOXYGEN
|
||||||
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
|
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
|
||||||
void setTickFormatFormat(const QString& __value);
|
void setTickFormatFormat(const QString& __value);
|
||||||
# endif
|
# endif
|
||||||
|
@ -290,11 +290,13 @@ void doListAxisStyling(const QDir& outputDir, int iconsize, QColor /*backgroundC
|
|||||||
plot.getYAxis()->setTickLabelType(JKQTPCALTprintf);
|
plot.getYAxis()->setTickLabelType(JKQTPCALTprintf);
|
||||||
plot.getYAxis()->setTickPrintfFormat("y=%+.2f");
|
plot.getYAxis()->setTickPrintfFormat("y=%+.2f");
|
||||||
plot.grabPixelImage(QSize(plot.getWidth(),plot.getHeight()), false).copy(0,0,iconsize*2.5,plot.getHeight()).save(outputDir.absoluteFilePath("JKQTPCALTprintf.png"), "png");
|
plot.grabPixelImage(QSize(plot.getWidth(),plot.getHeight()), false).copy(0,0,iconsize*2.5,plot.getHeight()).save(outputDir.absoluteFilePath("JKQTPCALTprintf.png"), "png");
|
||||||
#ifdef __cpp_lib_format
|
#if __cplusplus >= 202002L
|
||||||
|
# ifdef __cpp_lib_format
|
||||||
plot.setY(-1,1);
|
plot.setY(-1,1);
|
||||||
plot.getYAxis()->setTickLabelType(JKQTPCALTformat);
|
plot.getYAxis()->setTickLabelType(JKQTPCALTformat);
|
||||||
plot.getYAxis()->setTickFormatFormat("\\texttt{{ y={:*^+8.1f}}}");
|
plot.getYAxis()->setTickFormatFormat("\\texttt{{ y={:*^+8.1f}}}");
|
||||||
plot.grabPixelImage(QSize(plot.getWidth(),plot.getHeight()), false).copy(0,0,iconsize*2.5,plot.getHeight()).save(outputDir.absoluteFilePath("JKQTPCALTformat.png"), "png");
|
plot.grabPixelImage(QSize(plot.getWidth(),plot.getHeight()), false).copy(0,0,iconsize*2.5,plot.getHeight()).save(outputDir.absoluteFilePath("JKQTPCALTformat.png"), "png");
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user