|
Hello,
I have a GUI with two axes. I want to plot several curves on my axes.
My problem is the following : it plots only one curve to my axes. Why ?
If I remove my second axes then it works fine and I get all my curves in my first axes.
My code looks the following :
fig = figure('Position',[150,150,1000,800]);
axes_1 = axes('Parent',fig, 'Position',[275 300 250 400]);
axes_2 = axes('Parent',fig, 'Position',[575 300 250 400]);
my_function(axes_1)
------------------
my_function(axes_handle)
ColorSet = [
0.00 0.00 1.00
0.00 0.50 0.00
1.00 0.00 0.00
];
set(gca, 'ColorOrder', ColorSet);
hold all;
for i=1:3
x = ...
y = ...
plot(axes_handle,x,y)
end
end
-------------
Best regards,
Herv
|