|
|
Up |
|
|
  |
Author: MikeMike Date: May 6, 2008 20:58
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
|
| |
|
| | 4 Comments |
|
  |
Author: MikeMike Date: May 6, 2008 21:00
On May 7, 11:58Â am, Mike 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
|
| |
|
| | no comments |
|
  |
Author: MikeMike Date: May 6, 2008 21:25
On May 7, 12:00Â am, Mike gmail.com> wrote:
> On May 7, 11:58Â am, Mike 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)])
|
| Show full article (0.57Kb) |
| no comments |
|
  |
Author: helperhelper Date: May 6, 2008 21:38
> 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')
|
| |
| no comments |
|
  |
|
|
  |
Author: MikeMike Date: May 6, 2008 22:16
On May 7, 12:38Â pm, "helper " nospam.com> wrote:
>> 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')
|
| Show full article (0.54Kb) |
| no comments |
|
|