From 97c54916cfb6ac073762fcb58cf1cf760d2697a0 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Tue, 25 Jul 2023 22:20:00 +0200 Subject: [PATCH] NEW: you can use any (preferably stepped/categorial) JKQTPMathImageColorPalette as default graph colors list in a style.ini file, by setting auto_styles/use_color_from_palette=PALETTE_NAME FIXED/BREAKING: graph symbols were not properly applied when reading styles (in fact they were shuffled under some circumstances) --- doc/dox/whatsnew.dox | 2 + lib/jkqtcommon/jkqtpbasicimagetools.cpp | 30 ++++- lib/jkqtcommon/jkqtpbasicimagetools.h | 12 +- lib/jkqtplotter/jkqtpgraphsbasestyle.cpp | 138 ++++++++++++++++++----- lib/jkqtplotter/jkqtpgraphsbasestyle.h | 9 ++ 5 files changed, 157 insertions(+), 34 deletions(-) diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index f254ef0ce1..88dd7f8472 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -25,6 +25,7 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • BREAKING/REWORKED: Updated default styling of graphs. They are now more modern!
  • BREAKING/REWORKED: Implement better/more access functions to the graphs (inlcuding sorting, moving up/down, appending/prepending, graphs-iterators ...), solves issue #97, thanks to user:sim186 for bringing this up
  • BREAKING/FIXED: fixed issue #96: JKQTPlotter::saveAsPixelImage() does not add a border around the image any longer (can be reacivated by a new optional function parameter), thanks to user:nmielcarek for reporting
  • +
  • FIXED/BREAKING: graph symbols were not properly applied when reading styles (in fact they were shuffled under some circumstances)
  • FIXED issue described in #62: Fix custom labels draw, because giving exactly two label-strings did not display all of them, thanks to user:FalsinSoft
  • FIXED issue #70: Typo in jkqtplotter/CMakeLists.txt, thanks to user:tedlinlab
  • FIXED issue #80: Bug with multiple inheritance with Q_GDAGET with CLANG, thanks to user:igormironchik, caused by QTBUG-104874
  • @@ -85,6 +86,7 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • NEW: several new color palettes (especially stepped/categorial palettes), e.g. JKQTPMathImageColorPalette::JKQTPMathImageOkabeIto_STEP, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe_STEP, ...
  • NEW: add color palettes from Green's HELIX method, see https://arxiv.org/abs/1108.5083, also see https://jiffyclub.github.io/palettable/cubehelix/, see JKQTPCreateGreensCubeHelixLUT() and e.g. JKQTPMathImageCubeHelixClassic, JKQTPMathImageCubeHelix1, ...
  • NEW: Using Q_SIGNALS/Q_SLOTS instead of signals/slots MOC-keywords ... this allows for interoperability with other signals/slots frameworks, thanks to user:nickmontini for the proposal
  • +
  • NEW: you can use any (preferably stepped/categorial) JKQTPMathImageColorPalette as default graph colors list in a style.ini file, by setting auto_styles/use_color_from_palette=PALETTE_NAME
  • JKQTMathText: