Posted by
CARL Philippe (LBP) on
Jul 09, 2014; 2:26pm
URL: http://imagej.273.s1.nabble.com/horizontal-error-bars-using-Plot-function-tp5008640p5008649.html
Dear all / Neil / Wayne,
Please find under the following links the updates of the Plot, PlotWindow and Functions .java files taking into account the request of Neil:
http://punias.free.fr/Plot/Plot.javahttp://punias.free.fr/Plot/PlotWindow.javahttp://punias.free.fr/Plot/Functions.javaand the IJ.jar file implementing this new additions can be found under the following link:
http://punias.free.fr/Plot/ij-1.49c.jarFinally the following macro demonstrates how to use this new implementation:
macro "Error Bars" {
xValues = newArray(0.1, 0.25, 0.35, 0.5, 0.61,0.7,0.85,0.89,0.95);
yValues = newArray(2,5.6,7.4,9,9.4,8.7,6.3,4.5,1);
errorBars = newArray(0.8,0.6,0.5,0.4,0.3,0.5,0.6,0.7,0.8);
xerrorBars = newArray(2.1, 3.25, 0.35, 0.5, 0.61,0.7,0.85,0.89,0.95);
Plot.create("Error Bars", "X", "Y", xValues, yValues);
Plot.setLimits(0, 1, 0, 10);
Plot.setLineWidth(2);
Plot.add("error" , errorBars);
Plot.add("horizon", xerrorBars);
Plot.show();
}
I'm open for critics, especially for the keyword "horizon" in order to define the addition of X error bars in macros.
My best regards,
Philippe
Philippe CARL
Laboratoire de Biophotonique et Pharmacologie
UMR 7213 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
-----Message d'origine-----
De : ImageJ Interest Group [mailto:
[hidden email]] De la part de Philippe CARL
Envoyé : mercredi 9 juillet 2014 10:09
À :
[hidden email]
Objet : Re: horizontal error bars using Plot function
Dear Neil,
I had actually implemented the last updates on the Plot/PlotWindow classes in order to share with the community developments I required previously for a given plugin.
And horizontal error bars are up to now indeed not implemented within the last ImageJ plot code.
Thus if everybody agrees (I guess it is mostly up to Wayne to take the decision), I can make the needed development for these classes as well as the macro implementation and then submit the changes in order to be updated in the native ImageJ code.
My best regards,
Philippe
Philippe CARL
Laboratoire de Biophotonique et Pharmacologie UMR 7213 CNRS - Université de Strasbourg Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
-----Message d'origine-----
De : ImageJ Interest Group [mailto:
[hidden email]] De la part de Neil Fazel Envoyé : mercredi 9 juillet 2014 03:41 À :
[hidden email] Objet : horizontal error bars using Plot function
Is there a way to get the Plot() function of the ImageJ macro language to draw horizontal error bars? I looked at macros/ExamplePlots.txt and it only draws vertical errors bars. It would be nice if there were a way to draw both.
Thanks,
Neil
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html