Text on plots
Ben Abbott
bpabbott at mac.com
Sun Jan 25 14:49:50 CST 2009
On Jan 25, 2009, at 1:26 PM, dmelliott wrote:
>
> Dear Help,
>
> When I copy the example in the "octave help" at the beginning of
> section 15.1.3 Plot Annotations into an m-file and try to run it,
> absolutely no text appears on the graph other than the axis numbering.
> I have tried the methods that I used, successfully, in Matlab,
> and they do not work either. How can I make a graph title and axis
> labels on a figure generated with "plot"?
> I am using the handle graphics.
>
>
> More
> than a bit frustrated,
>
> Douglas
> M Elliott
I assume you are trying something like what is below?
set (get (gca, 'xlabel'), 'string', 'some xlabel'))
Depending upon the version of octave you are running that may not work.
It does work for me (Octave 3.0.3). What version of Octave are your
running?
If you are running an older version, you can update your octave or
take the advice offered by Bill and Ivan.
Ben
More information about the Help-octave
mailing list