How to change line style of a plotted graph?
Afficher commentaires plus anciens
Hello,
I would like to change the linestyle of a plotted graph for making color blind people to understand my graph. The graph is already plotted. I have no basic data (anymore), but only the saved figure. I tried the follwing:
hline = findobj(gcf, 'type', 'line')
set(hline(1),'LineStyle',':')
But that didnt seem to work.I added my graph.
Does anyone knows how to do this?
Roe
6 commentaires
Thorsten
le 17 Déc 2014
You forgot to add the graph; and the saved figure file would also be helpful.
Roel
le 17 Déc 2014
matt dash
le 17 Déc 2014
Your code works fine for me on your graph. Make sure that "gcf" is indeed the figure you think it is (i.e. do you have other figures open too?)
Roel
le 18 Déc 2014
Roel
le 18 Déc 2014
Roel
le 18 Déc 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!