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

Place indicators (or bar chart) under already existing plots #109

Closed sim186 closed 11 months ago

sim186 commented 11 months ago

Hi,

I have the need to show some value on the x-axis in a form of an indicator (basically a line, or a wide line to indicate a range). Is there some built-in funciton to do that in the library?

immagine

My first thought was to just place first a bar chart and then on top my line char. Is that a good approach?

jkriege2 commented 11 months ago

There is a special annotation element that you can use this: https://jkriege2.github.io/JKQtPlotter/class_j_k_q_t_p_vertical_range.html

sim186 commented 11 months ago

Wow this seems exactly what I needed. Sorry but before I couldn't find it into the documentation. ;)