label problem

Ben Abbott bpabbott at mac.com
Thu Feb 14 06:41:53 CST 2008


On Feb 14, 2008, at 1:09 AM, gareth wrote:

> Ben,
> Many thanks for a speedy response to my query.  I wonder if  you  
> could be more specific as I couldn't see how the reference should be  
> applied. I believe I am using the latest binary  codes for octave  
> and gnuplot.
> Thanks  again,
> Gareth.
>


Gareth,

You'll need to refer to Matlab syntax to set fonts, sizes, colors, etc.

For example

	ht = text (x, y, 'some-string');
	set (ht, 'color', [0 0 1], 'fontsize', 14, 'fontname', 'Helvetica');

or for an xlabel

	xlabel ('some-label', 'color', [0 0 1], 'fontsize', 14, 'fontname',  
'Helvetica');

or

	xlabel ('some-label');
	hx = get (gca, 'xlabel');
	set (hx, 'color', [1 0 0], 'fontsize', 14, 'fontname', 'Helvetica');

The Matlab syntax and properties are presently a work in progress.  
Some properties may not yet be in place.

To see which ones are

	prop = get (hx)

Ben


More information about the Help-octave mailing list