1D Qwt Plot: wrong legendTitle-tag if dataObject is a ROI (slice) of a bigger dataObject
In the itom1dqwtplot, the legend checks if the dataObject has tags defined with the names legendTitle0, legendTitle1, legendTitle2... If this is the case, the legend entries automatically get the values assigned to these tag-keys.
If however, the dataObject is a ROI of another dataObject, the legend titles are wrongly assigned, since the first line still uses the tag legendTitle0, however the real tag could be something like legendTitle1.
This can be fixed if one checks the m_roi member of the dataObject in order to check how many "invisible" rows are prepended to that ROI such that the real legendTitleXX-keyword can be assumed by this.
Comments (4)
-
reporter -
- changed status to resolved
fixes
#15: Implementation of a ROI check to set the legend entries considering a possible ROI.→ <<cset 94d2978d081b>>
-
further improvement of bugfix
#15→ <<cset d59a45894f92>>
-
Merged in legendFix (pull request #7)
fixes
#15: Implementation of a ROI check to set the legend entries considering a possible ROI.→ <<cset 6d51c1eb2f8e>>
- Log in to comment
Example: