I am plotting some qty N financial time series as follows:
plot([fints1 fints2 ... fintsN])
or some subset thereof. Which works fine most of the time. Except sometimes for some subsets of these fints it plots fints1 on one axis then just puts another axis above it and plots the next fints2 and the remaining fintsx to N on this new axis. I want all the plots on the same axis. I'm baffled. All the date/time (x axis) points match in each fintsx and all the numbers being plotted are type double.
I'll try to illustrate here.
If I run this, which works about 75%:
plot([two_yr five_yr])legend('2y','5y','Location','Best')
I get this about 25% of the time:
This series of script puts out what I want but is untenable in the larger scheme of things for some reasons:
hold onplot(two_yr)plot(five_yr)legend offlegend('2y','5y','Location','Best')hold off
This is how it appears, as desired:
Best Answer