[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Print plots without GUI
From: |
Jaroslav Hajek |
Subject: |
Re: Print plots without GUI |
Date: |
Fri, 22 Jan 2010 09:45:00 +0100 |
On Fri, Jan 22, 2010 at 8:06 AM, hjg10 <address@hidden> wrote:
>
> My apologies if I am repeating questions but tried searching for an answer to
> this with no luck.
>
> Is there a way to print plots while running octave in a non-graphical
> environment (ie connectnig to a computer remotely via ssh)? I know this
> works in Matlab but have not managed to do it in octave.
>
Yes, you can create an invisible figure.
figure (1, "visible", false);
plot (1:10, 1:10);
print myplot.eps
works for me (3.3.50+).
> Also is there a way to add annotation to plots, ie can you print text
> outside the axes somewhere other than the title or axis lables?
>
Use the "text" primitive.
text (5, 5, "the middlepoint")
hth
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz