I want to plot stars with dashed outline but when I try to use the scatter function to do it, it gives the error "There is no LineStyle property on the Scatter class."
scatter(hx1,hy1,210,'--kp')

댓글 수: 4

Meg Noah
Meg Noah 2020년 1월 8일
You might be able to design your own marker that would have that look and feel:
Walter Roberson
Walter Roberson 2020년 1월 8일
In MATLAB, markers have only four properties:
  1. size
  2. shape
  3. color of the edge around the marker
  4. color of the marker face
Unfilled markers are markers with marker face color 'none'. Filled markers have marker face color that is not 'one'. Filled markers usually have the same edge color as face color, but it is possible to adjust that afterwards.
MATLAB markers do not have line style: when the edge color is not 'none' then the edge is always a solid line.
Jing Ci Neo
Jing Ci Neo 2020년 1월 8일
Alright, I see. Thanks guys!
Walter Roberson
Walter Roberson 2020년 1월 8일
I forgot Alpha properties.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

질문:

2020년 1월 8일

댓글:

2020년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by