jkriege2 / JKQtPlotter

an extensive Qt5 & Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
http://jkriege2.github.io/JKQtPlotter/index.html
GNU Lesser General Public License v2.1
889 stars 190 forks source link

Plots depth #97

Closed sim186 closed 1 year ago

sim186 commented 1 year ago

Since I cannot find any reference in the documentation, is there any way to decide, in case of multiple graph shown in the same plot, which one should appear at top and which one in foreground?

I guess them are shown in the order how we call appGraph. If I want to resort them should I remove and then add again in the order I prefer?

jkriege2 commented 1 year ago

Hi! hhmmm ... you're right, there is no API to do that ... but I would see that as an issue that should be solved ... I'll see what I can do ... until then:

Yes plot order is the order of addGraph() calls and you can use deleteGraph() to remove a graph without deleting it and then later call addGraph() again!

cu JAN

jkriege2 commented 1 year ago

Hmmm ... looking at the code: Management of graphs is really a mess ... I think I will clean that up right now ;-)

jkriege2 commented 1 year ago

Should be solved by https://github.com/jkriege2/JKQtPlotter/commit/ebd1a29e1dd0ea7cfab1b6d3bb25ff50fe5713b9

sim186 commented 1 year ago

Sounds perfect! I will try it soon!

jkriege2 commented 1 year ago

solved via https://github.com/jkriege2/JKQtPlotter/commit/ebd1a29e1dd0ea7cfab1b6d3bb25ff50fe5713b9