From: forkandwait w on
Is there a way to have the stem plot use strings on its x-axis?

I would like to use text labels at each tick, without using text() at the various positions.

Thx,
Fork
From: us on
"forkandwait w" <forkandwait(a)gmail.com> wrote in message <hou0mb$9ub$1(a)fred.mathworks.com>...
> Is there a way to have the stem plot use strings on its x-axis?
>
> I would like to use text labels at each tick, without using text() at the various positions.
>
> Thx,
> Fork

one of the solutions

stem(1:4);
set(gca,...
'xtick',[1,.5*pi,pi,4],...
'xticklabel',{'a','bb','us','ML'});

us