How to change graph lineStyles?

the user gives the function a figure with 3 graphs ( 3 plots) in it. I want to change the line color and LineStyle of each one. How can I do it? I've tried findobj(gcf,'type','line') but for example in a figure with 3 graphs, it finds 16 line objects. How can I find out which ones are the graphs? Note that the user will give different figures to the function. so I cant not count the lines and try to find which number is for which line.

2 Kommentare

Walter Roberson
Walter Roberson am 3 Feb. 2014
Do the figures sometimes have legends? Each legend entry requires a line (or is it two lines? I would need to check.)
Mohammad
Mohammad am 3 Feb. 2014
sometimes they have legends too, but I can't count on it!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sean de Wolski
Sean de Wolski am 3 Feb. 2014

0 Stimmen

plottools on
Then interactively change the line styles as you see fit.

Kategorien

Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 3 Feb. 2014

Kommentiert:

am 3 Feb. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by