How to plot more than two graphs in one figure?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
as the title implies, how can i achieve that? i think this would be tricky. with requirement, that each graph has visually distinctive y-axis. tqvm.
PS: been searching for likely thread, but there is an answer for only two graph, with one y-axes on the left and the other on the right.
0 comentarios
Respuesta aceptada
Arnaud Miege
el 26 de Abr. de 2011
How many axes do you need? Using ploty4, you can get 4. I guess you can modify the code if you need more axes.
HTH,
Arnaud
5 comentarios
Arnaud Miege
el 26 de Abr. de 2011
Possibly, but I suspect it would require a bit of programming. The other issue I can foresee is with that many axes, there's hardly going to be any room left for the actual plot.
Arnaud Miege
el 26 de Abr. de 2011
Another suggestion: if some of your signals are of the same order of magnitude, you might want to plot them on the same (vertical) axis, it will reduce the number of axes required. You can then use a legend to distinguish which one is which.
Más respuestas (1)
Oleg Komarov
el 26 de Abr. de 2011
Also give a look at the example code I posted in this thread: http://www.mathworks.com/matlabcentral/answers/5649-align-problem-in-multiple-axes
2 comentarios
Ver también
Categorías
Más información sobre Two y-axis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!