필터 지우기
필터 지우기

How to change graph lineStyles?

조회 수: 3 (최근 30일)
Mohammad
Mohammad 2014년 2월 3일
댓글: Mohammad 2014년 2월 3일
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
Walter Roberson
Walter Roberson 2014년 2월 3일
Do the figures sometimes have legends? Each legend entry requires a line (or is it two lines? I would need to check.)
Mohammad
Mohammad 2014년 2월 3일
sometimes they have legends too, but I can't count on it!

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 2월 3일
plottools on
Then interactively change the line styles as you see fit.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by