problem with axis
Ben Abbott
bpabbott at mac.com
Sat Jan 5 10:26:02 CST 2008
On Jan 5, 2008, at 11:21 PM, Tino Langer wrote:
> Ben Abbott schrieb:
>> You want the axis labels without the tic-marks?
>> Ben
>
> no labels for the tics (for example 0 1 2 3 4 ...) on the axis -
> only a plain line with an arrow on the end if this is possible.
>
> I think I have found my mistake - box("off") disables the axis :-/
> But a box is not neccessary.
>
> What I want is the following:
>
> <-- snip -->
>
> ^
> |
> |
> |
> |
> |
> ------------------------------>
> x-axis
>
> <-- snap -->
>
> thanks fpr help - Tino
Tino,
Try modifying this to suit your needs.
x = [0 1];
plot(x,x);
axis([0 1 0 1])
set(gca,'xtick',[0 1]);
set(gca,'ytick',[0 1]);
set(gca,'xticklabel',{''',''})
set(gca,'yticklabel',{'',''})
xlabe('x-axis')
ylabel('y-axis")
box off
There are no arrows, but ....
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080106/8a0b5b9a/attachment-0001.html
More information about the Help-octave
mailing list