How to change the colors of multiple plots in GUI
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I am trying to build a GUI which reads multiple colums of datas from excell files then chooses one by one each column, reads data, plots it, then fits the custom fitting function, and finally plots whole graphs on the same graph after repeating the procedure for different data sets. My GUI can do all these and can plot the different lines all together on the same graph, but all of their colors are the same!..I am not able to use a loop of plottings because I repeat all process after I finish plotting, so in each round I can only plot one graph. Then I used "hold on" to plot them on the same graph.
I may save whole plotted datas in a matrix then use all these datas in the matrix and plot them alltogether, but this road seems too much and unnecessary to me, there must be a short way to achieve it. I could not find an easy way to change the color of each plotting. I am attaching the final picture of the GUI plotting. I can not label them automatically or change the colors of each line automatically :/...
Thanks all your advice..
2 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Line Plots 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!