Hi Chris,
it seems that this is not the full macro, so it is not really clear
where the problem comes from. I can see two points: Make sure that
- the curly braces enclose all of the macro
- you call Plot.show(); after adding all data
Michael
________________________________________________________________
On 5 May 2010, at 15:57, Ninja Chris wrote:
> Hello everyone,
>
> I would like to use ImageJ to analyse my NMR spectra. The files are
> Bruker
> format but the Bruker plugin doesn't work for me- it can't find an
> "acqp"
> file associated with the FIDs, which is odd as SpinWorks opens the
> FIDs
> fine. Ultimately I would like to plot XY data of the spectra in
> ImageJ so
> that I can integrate peaks and compare relative peak areas between
> spectra.
> I've tried using the Plot.create function but can't get it to work:
>
> macro "NMR spectra plot" {
> xValues = newArray(~comma delimited x values~)
> yValues = newArray(~comma delimited y values~)
> }
> Plot.create("Scatter Plot", "X", "Y");
> Plot.setLimits(0, 16384, 0, 100000);
> Plot.add("dots", x, y);
>
>
> I would be very grateful for any help people can offer.
>
> Chris
>