Plotting two or more fints, plot is splitting up, how to stop?
Mostrar comentarios más antiguos
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 on
plot(two_yr)
plot(five_yr)
legend off
legend('2y','5y','Location','Best')
hold off
This is how it appears, as desired:

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!