PDA

View Full Version : Changin the place of the grap legend in Qwt



Momergil
1st December 2011, 20:30
Hello!

I'm developing a software that uses Qwt to plot some graph but I needed that the legend of the graph's division stay not under the MaxMajor, but between them. So instead of one having "Max Major + Legend, MaxMinor, MaxMinor, Mas Major + Legend, ...", one would have "Max Major, Legend, Max Minor, Legend, Mas Minor, Legend, Max Major, Legend", and so forth.

How do I configure this in Qwt?

Examples:
- How it is: http://simplestudies.com/repository/lectures/ch9_variable_cost_graph.gif
- how I want: http://www.webopedia.com/FIG/LINEGR.gif

Thanks!

Momergil

Uwe
2nd December 2011, 07:35
You are talking about the tick label - the legend is something different.

Having tick labels between 2 major ticks is not possible - something on my TODO list. But you can try to do the same hack, that is implemented in the friedberg example.

Uwe

Momergil
2nd December 2011, 15:43
You are talking about the tick label - the legend is something different.

Having tick labels between 2 major ticks is not possible - something on my TODO list. But you can try to do the same hack, that is implemented in the friedberg example.

Uwe

Hmm, its a pitty. Well, I'll try to do as in that example and wait till the next Qwt version.

Thanks,

Momergil