From efa0db1bbe7916fd7a911f7f5bfcd998d16bccbd Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Sat, 24 Sep 2022 02:06:42 +0200 Subject: [PATCH] NEW: added possibility to scale the axis ticks by a factor (e.g. pi) to generate axes with ticks 0pi, 1pi, 2pi ... --- doc/dox/whatsnew.dox | 5 +- .../axisstyle/JKQTPCALTintslashfrac.png | Bin 2395 -> 2767 bytes doc/images/axisstyle/JKQTPCALTslashfrac.png | Bin 2479 -> 1830 bytes doc/images/axisstyle/JKQTPLTMLin.png | Bin 0 -> 4651 bytes doc/images/axisstyle/JKQTPLTMLinOrPower.png | Bin 0 -> 4349 bytes doc/images/axisstyle/JKQTPLTMPower.png | Bin 0 -> 3504 bytes .../axisstyle/axis_unit_scaling_none.png | Bin 0 -> 3525 bytes doc/images/axisstyle/axis_unit_scaling_pi.png | Bin 0 -> 4374 bytes doc/images/jkqtmathtext/jkqtmathtext_utf8.png | Bin 3160 -> 2985 bytes lib/jkqtfastplotter/jkqtfastplotter.h | 4 +- lib/jkqtplotter/jkqtpbaseplotter.h | 6 +- lib/jkqtplotter/jkqtpcoordinateaxes.cpp | 87 +++++++++++++---- lib/jkqtplotter/jkqtpcoordinateaxes.h | 88 +++++++++++++----- lib/jkqtplotter/jkqtptools.h | 8 +- screenshots/imageplot_userpal_program.png | Bin 18840 -> 18842 bytes .../imageplot_userpal_program_small.png | Bin 9728 -> 9729 bytes screenshots/multiplot_controlwindow.png | Bin 37738 -> 37707 bytes screenshots/multiplot_controlwindow_small.png | Bin 6053 -> 6027 bytes screenshots/parsedfunctionplot.png | Bin 29344 -> 29333 bytes screenshots/parsedfunctionplot_small.png | Bin 8371 -> 8348 bytes .../jkqtplotter_doc_imagegenerator.cpp | 56 +++++++++++ 21 files changed, 205 insertions(+), 49 deletions(-) create mode 100644 doc/images/axisstyle/JKQTPLTMLin.png create mode 100644 doc/images/axisstyle/JKQTPLTMLinOrPower.png create mode 100644 doc/images/axisstyle/JKQTPLTMPower.png create mode 100644 doc/images/axisstyle/axis_unit_scaling_none.png create mode 100644 doc/images/axisstyle/axis_unit_scaling_pi.png diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index f3704ca519..644e8f7d83 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -54,10 +54,11 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • NEW: barcharts (derived from JKQTPBarGraphBase) can be configured to use different fill styles above and below the baseline, see JKQTPBarGraphBase::FillMode
  • NEW: added new error indicator styles JKQTPErrorHalfBarsOutwards, JKQTPErrorHalfBarsInwards, JKQTPErrorHalfBarsAbove, JKQTPErrorHalfBarsBelow which are especially useful for barcharts
  • NEW: Added signals JKQTBasePlotter::beforeExporting()/JKQTBasePlotter::afterExporting() and JKQTBasePlotterJKQTBasePlotter:beforePrinting()/JKQTBasePlotter::afterPrinting() which allow to modify the plot just before and just after an export/print
  • -
  • NEW: Added new JKQTPCALabelType elements (JKQTPCALTfrac...), so axis label ticks can be displayed as fractions 1/2 instead of 0.5
  • -
  • NEW: Added new JKQTPCALabelType elements JKQTPCALTscientific, so axis label ticks can be displayed as numbers in scientific notation like \c 1.2E-34
    +
  • NEW: Added new JKQTPCALabelType elements (JKQTPCALTfrac...), so axis label ticks can be displayed as fractions 1/2 instead of 0.5
    + JKQTPCALTscientific, so axis label ticks can be displayed as numbers in scientific notation like \c 1.2E-34
    JKQTPCALTprintf for general formatting with a printf-format string
  • NEW: all elements of a coordinate axis may have their own color now
  • +
  • NEW: added possibility to scale the axis ticks by a factor (e.g. pi) to generate axes with ticks 0pi, 1pi, 2pi ...
  • JKQTMathText: