|
Dear Volker!
> I plotted 2 graphs using "plotyy".
>
> [handles.AX1,handles.H1,handles.H2] = plotyy( handles.Signal1TimeVector,...
> handles.Signal1,...
> handles.Signal2TimeVector,...
> handles.Signal2);
>
> handles.AX1 contains the two handles of the axis.
>
> Whenever I call "axes(handles.AX1(n))", one of the graphs keeps dissapearing!!!
In Matlab 6.5 the 2nd axis vanishes for "axes(handles.AX1(1))", but for "axes(handles.AX1(2))" both axes are visible. This is exactly what I would expect after inspecting the source of PLOTYY, because this draws the first axis with a white opaque background, while the 2nd axes uses the "Color" 'none'.
Solutions:
1. Either set the "Color" of the 1st axes object to 'none' also.
2. Or even better: do not call "axes(handles.AX1(1))"! If you want to add further objects in the 1st axes, set the according property, e.g.:
line(1:10, 1:10, 'Parent', handles.AX1(1));
3. If you need a background color, which differs from the fugure's background, you have to create a further axes on the bottom of the others.
Good luck, Jan
Good luck, Jan
|