Skip to content

Commit

Permalink
fixed missing documentation and compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Oct 16, 2024
1 parent 1dc569d commit 8ff150a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/jkqtplotter/jkqtpcoordinateaxes.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPCoordinateAxis: public QObject {
inline QString getTickPrintfFormat() const { return this->axisStyle.tickPrintfFormat; }
/** \copydoc JKQTPCoordinateAxisStyle::tickMode */
inline JKQTPLabelTickMode getTickMode() const { return this->axisStyle.tickMode; }
#if __cplusplus >= 202002L
# ifdef __cpp_lib_format
#if __cplusplus >= 202002L || DOXYGEN
# if defined(__cpp_lib_format) || DOXYGEN
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
inline QString getTickFormatfFormat() const { return this->axisStyle.tickFormatFormat; }
# endif
Expand Down Expand Up @@ -618,8 +618,8 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPCoordinateAxis: public QObject {

/** \copydoc JKQTPCoordinateAxisStyle::tickPrintfFormat */
void setTickPrintfFormat(const QString& __value);
#if __cplusplus >= 202002L
# ifdef __cpp_lib_format
#if __cplusplus >= 202002L || DOXYGEN
# if defined(__cpp_lib_format) || DOXYGEN
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
void setTickFormatFormat(const QString& __value);
# endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,13 @@ void doListAxisStyling(const QDir& outputDir, int iconsize, QColor /*backgroundC
plot.getYAxis()->setTickLabelType(JKQTPCALTprintf);
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");
#ifdef __cpp_lib_format
#if __cplusplus >= 202002L
# ifdef __cpp_lib_format
plot.setY(-1,1);
plot.getYAxis()->setTickLabelType(JKQTPCALTformat);
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");
# endif
#endif


Expand Down

0 comments on commit 8ff150a

Please sign in to comment.