Dear all,
For some applications I would need to have a Plot. add(java.lang.String shape, double[] x, double[] y, , double[] z) method. The idea is that this kind of plots gives a XY scatter plot where the Z parameter is represented with a color coding applied on the shapes used for the plot. Which means either a grayscale levels coding or a color (I thought about the Fire LUT) coding (thus the method could maybe even be declined by Plot. add(java.lang.String shape, double[] x, double[] y, , double[] z, String lut)). Thus has somebody already done something similar (since it would be quite stupid to reinvent the wheel if it is already made)? Also as I see more or less how to modify the gray scaling of the shapes how could I make their color follow a given LUT? Finally (probably it is up to Wayne to answer this) once completed could such a method be of common interest in order to be added within the native methods of ImageJ? I look forward for your answers and suggestions. 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Philippe,
maybe you can sort the data into a few bins for the different z values and then plot each bin with a different color? Michael ________________________________________________________________ On Feb 25, 2016, at 11:42, Philippe CARL wrote: > Dear all, > > For some applications I would need to have a Plot. add(java.lang.String > shape, double[] x, double[] y, , double[] z) method. > > The idea is that this kind of plots gives a XY scatter plot where the Z > parameter is represented with a color coding applied on the shapes used for > the plot. > > Which means either a grayscale levels coding or a color (I thought about the > Fire LUT) coding (thus the method could maybe even be declined by Plot. > add(java.lang.String shape, double[] x, double[] y, , double[] z, String > lut)). > > Thus has somebody already done something similar (since it would be quite > stupid to reinvent the wheel if it is already made)? > > Also as I see more or less how to modify the gray scaling of the shapes how > could I make their color follow a given LUT? > > Finally (probably it is up to Wayne to answer this) once completed could > such a method be of common interest in order to be added within the native > methods of ImageJ? > > I look forward for your answers and suggestions. > > My best regards, > > Philippe -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by CARL Philippe (LBP)
Hi Philippe,
> Which means either a grayscale levels coding or a color (I thought about the > Fire LUT) coding. Thus has somebody already done something similar? In the BAR suite (http://imagej.net/BAR) there is a script that fits a series of polynomials to a X,Y dataset. The series of fits is colored according to a rainbow LUT, so you may find it useful. There is an example here: https://github.com/tferr/Scripts/blob/master/Data_Analysis/README.md#fit-polynomial The source (with some annotations) is at: https://github.com/tferr/Scripts/blob/master/Data_Analysis/Fit_Polynomial.bsh Does it help? -tiago -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Michael Schmid
Dear Michael and Tiago,
Thanks a lot for your answers and I will inspire from both of you. Sometimes you are blinded by an idea so that you are missing much easier ones. My best regards, Philippe -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |