How to change line style of a plotted graph?
    33 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Roel
 el 17 de Dic. de 2014
  
    
    
    
    
    Comentada: Roel
 el 18 de Dic. de 2014
            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 comentarios
Respuesta aceptada
  Azzi Abdelmalek
      
      
 el 17 de Dic. de 2014
        If we test this example
   plot(1:44)
hline = findobj(gcf, 'type', 'line')
set(hline(1),'LineStyle','--')
It seems to work
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Creating, Deleting, and Querying Graphics Objects 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!



