Mercurial > repos > public > sbplib
comparison +anim/setup_1d_plot.m @ 66:dbc50fa58ca6
Made setup_1d_plot behave like matlab plot.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 20 Nov 2015 10:24:21 +0100 |
parents | ce90abc350c5 |
children | f87003695677 |
comparison
equal
deleted
inserted
replaced
65:33f0654a2413 | 66:dbc50fa58ca6 |
---|---|
16 yfun = {yfun}; | 16 yfun = {yfun}; |
17 end | 17 end |
18 | 18 |
19 figure_handle = gcf; | 19 figure_handle = gcf; |
20 plot_handles(1) = plot(x,0*x); | 20 plot_handles(1) = plot(x,0*x); |
21 hold on | |
22 for i = 2:length(yfun) | 21 for i = 2:length(yfun) |
23 plot_handles(i) = plot(x,0*x); | 22 plot_handles(i) = line(x,0*x); |
24 end | 23 end |
25 hold off | |
26 | 24 |
27 axis_handle = gca; | 25 axis_handle = gca; |
28 | 26 |
29 xlabel('x') | 27 xlabel('x') |
30 ylabel('y') | 28 ylabel('y') |