Login  Register

A couple questions about the Plot classes

Posted by CARL Philippe (LBP) on Mar 13, 2020; 4:28pm
URL: http://imagej.273.s1.nabble.com/A-couple-questions-about-the-Plot-classes-tp5023038.html

Dear all (probably Michael),
With the new updates of the ImageJ plot classes, it is now possible to add a legend using the Plot.setLegend("label1\tlabel2...", "options") method.
It is alternatively possible to define the data labels using the Plot.add(type, xValues, yValues, label) method.
But I didn't find a way (or maybe forgot it) to just draw a legend (defining additionally its options) once having defined the data labels through Plot.add(type, xValues, yValues, label) method besides having to redefine all the "label1\tlabel2..." (and in my application I would thus have 18 labels to be redefined) within the Plot.setLegend("label1\tlabel2...", "options") method.
Also is there a difference between the Plot.update() and Plot.show() methods?
At last, I empirically figured out that the Plot.setLimitsToFit() method need to follow either a Plot.update() or Plot.show() method which for me is kind of unlogical.
Thanks a lot in advance for your lightnings on these questions.
My best regards,
Philippe


Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html