From: Mike on
Hi

I use plotyy to plot two y1 and one y2(on the right).
The xtick are not the same. Hence they are overlapped.
How to solve this problem.
Thank you in advance.
Mike
From: Mike on
On May 7, 11:58 am, Mike <Sulfate...(a)gmail.com> wrote:
> Hi
>
> I use plotyy to plot two y1 and one y2(on the right).
> The xtick are not the same.  Hence they are overlapped.
> How to solve this problem.
> Thank you in advance.
> Mike

Sorry. Basically I use:
[AX,H1,H2] = plotyy(x,[y1,y2],x,y3);
legend([H1;H2],'y1',y2',y3');

Mike
From: Mike on
On May 7, 12:00 am, Mike <Sulfate...(a)gmail.com> wrote:
> On May 7, 11:58 am, Mike <Sulfate...(a)gmail.com> wrote:
>
> > Hi
>
> > I use plotyy to plot two y1 and one y2(on the right).
> > The xtick are not the same.  Hence they are overlapped.
> > How to solve this problem.
> > Thank you in advance.
> > Mike
>
> Sorry.  Basically I use:
> [AX,H1,H2] = plotyy(x,[y1,y2],x,y3);
> legend([H1;H2],'y1',y2',y3');
>
> Mike

I've found the solution:
set(AX,'xlim',[min(x) max(x)])

But I want to set the lines to black and with markers.
How to do it please?


Mike
From: helper on
Mike <SulfateIon(a)gmail.com> wrote in message <bb6e7a03-7bb7-
4a58-9126-bd5bdc4b64aa(a)u36g2000prf.googlegroups.com>...

> I've found the solution:
> set(AX,'xlim',[min(x) max(x)])


You might also want to check out "axis tight"


> But I want to set the lines to black and with markers.
> How to do it please?
>
>
> Mike


Try

set([H1;H2],'Color','k','marker','o')
From: Mike on
On May 7, 12:38 pm, "helper " <spaml...(a)nospam.com> wrote:
> Mike <Sulfate...(a)gmail.com> wrote in message <bb6e7a03-7bb7-
>
> 4a58-9126-bd5bdc4b6...(a)u36g2000prf.googlegroups.com>...
>
> > I've found the solution:
> > set(AX,'xlim',[min(x) max(x)])
>
> You might also want to check out "axis tight"
>
> > But I want to set the lines to black and with markers.
> > How to do it please?
>
> > Mike
>
> Try
>
> set([H1;H2],'Color','k','marker','o')

Then three lines will be all in marker o.
Can I have distinct markers please?

Mike