Login  Register

Re: output from PlotWindow

Posted by Michael Schmid on Oct 12, 2007; 12:43pm
URL: http://imagej.273.s1.nabble.com/output-from-PlotWindow-tp3698225p3698226.html

Hi Tony,

You could use the EPS Writer
   http://rsb.info.nih.gov/ij/plugins/eps-writer.html

I fear that you won't be happy with it, however:

The Plot Window uses pixel graphics. If you want to include
your plot into any document to be printed or converted to PDF,
you should have vector graphics.
Therefore, it is much better to export the plot values as text
and use a program such as gnuplot: http://www.gnuplot.info/
With gnuplot, you can get eps output with
"set terminal postscript eps".
It should be possible to control gnuplot from a macro using the
exec macro function of ImageJ.

Michael
________________________________________________________________

On 12 Oct 2007, at 13:13, Tony Shepherd wrote:

> I have a plugin that outputs graphs (PlotWindow objects) to the  
> screen using
> PlotWindow.show(). There's no method in PlotWindow to save these  
> figures -
> in particular I want an encapsulated postscript (eps) file.
>
> Currently I am saving the plots as text PlotWindow.saveAsText(), then
> importing to another program that lets me save out as .eps.
>
> Is there a better way?
>
> thanks