[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print

From: Ben Abbott
Subject: Re: print
Date: Fri, 10 Feb 2012 08:27:28 -0500

On Feb 10, 2012, at 7:50 AM, address@hidden wrote:

> Hello!
> I ve got a problem.
> I didnt use octave for some years. Now my program doesnt work, and I cant
> solve the problem.
> I formerly used this code to save a plot:
> plot(meanschnipsel)
> gset term png;
> gset( "output", 
> sprintf("\"%s/PCs/\"",path,person,re))
> replot
> axis
> I know, I now have to use "print" but I don't know how to realize the handover
> of the variables for the directory-path and the name of the plot (in this case
> "path", "person","re")
> I hope I explained my problem good enough.
> Thank you for helping!
> Claudia 

Does this work for you?

        plot (meanschnipsel)
        print ("-dpng",  sprintf ("\"%s/PCs/\"", 
path, person, re))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]