Plotting multiple series on same plot all in black but with different point markers and line style
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I am tryong For loops to plot data with multiple series to be plotted on same graphs. The number of series varies thus, the line it plots varies also. Is there any way i can use to plot these in black with different line styles and point markers. If someone can help with a generic code. Attached is a plot. I want that the line styles and point markers be different for each series plotted.
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 11월 11일
편집: Walter Roberson
2019년 11월 11일
See the axes properties ColorOrder and LineStyleOrder . You can probably set ColorOrder to a single color (the black you want), and then it should automatically cycle through all of the style and marker combinations you have created.
Or you could just create a celll array StyleCombos of style and marker combinations, and
for seriesnumber = 1 : whatever
plot(datax, datay, StyleCombos{seriesnumber}, 'color', 'k')
hold on
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!