[changeset] - x/y/zticklabel as a numeric vector
Ben Abbott
bpabbott at mac.com
Mon Nov 3 18:08:18 CST 2008
On Nov 3, 2008, at 6:28 PM, Ben Abbott wrote:
> I noticed that Octave does not allow
>
> set (gca, 'xticklabel', get (gca, 'xtick'))
>
> while Matlab does.
>
> Changeset for a trivial solution is attached.
>
> Ben
>
> <changeset-xticklabel-num-vec.patch>
This should work as well.
axes
set (gca, 'xtick', 0:0.2:1)
set (gca, 'xticklabel', num2str(get (gca, 'xtick')(:)))
Changeset attached.
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-xticklabel-num-vec.patch
Type: application/octet-stream
Size: 1182 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20081103/f69eecb9/attachment.obj
-------------- next part --------------
More information about the Octave-maintainers
mailing list