make "plot" visualization more visible

조회 수: 5 (최근 30일)
Michael Ghorbanzadeh
Michael Ghorbanzadeh 2020년 7월 20일
답변: Leepakshi 2025년 3월 7일
I have 5 plots in a figure. One plot has a lot more points (gray color in the figure with about 4000 points) and hence while other a few hundred. I put the color for the larger set curve to gray in order to make the other 4 plots (shown in green, orange, and purple) more visible (following script). I also made the 'Linewidth' for gray curve to 0.5. Are the any suggestions to make the other 4 curves (shown as orange, green, red, and purple) more visible?
newcolors = [0.83 0.14 0.14
1.00 0.54 0.00
0.47 0.25 0.80
0.25 0.80 0.54
0.7 0.7 0.7];
colororder(newcolors)
  댓글 수: 1
jonas
jonas 2020년 7월 20일
Linewidth 0.5 is default, so does not change anything. Could try setting the others to 1.0. Try changing the stackorder as well so that gray is on top.

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

답변 (1개)

Leepakshi
Leepakshi 2025년 3월 7일
Hi Michael,
To enhance the visibility of the four curves (orange, green, red, and purple) against the gray curve with many points, I recommend you try out these methods:
  1. Increase Line Width for Colorful Curves: Make the lines for the colorful curves thicker to help them stand out more against the gray curve.
plot(x1, y1, 'LineWidth', 2); % Orange curve
plot(x2, y2, 'LineWidth', 2); % Green curve
plot(x3, y3, 'LineWidth', 2); % Red curve
plot(x4, y4, 'LineWidth', 2); % Purple curve
  1. Use Different Line Styles: Apply different line styles (e.g., dashed, dotted) to the colorful curves to make them distinct.
plot(x1, y1, '--', 'LineWidth', 2); % Orange curve
plot(x2, y2, ':', 'LineWidth', 2); % Green curve
plot(x3, y3, '-.', 'LineWidth', 2); % Red curve
plot(x4, y4, '-', 'LineWidth', 2); % Purple curve
  1. Adjust Transparency of the Gray Curve: Make the gray curve semi-transparent to reduce its visual dominance.
plot(x_gray, y_gray, 'Color', [0.7 0.7 0.7 0.3], 'LineWidth', 0.5); % Gray curve with transparency
By implementing these suggestions, you should be able to make the colorful curves more prominent and distinguishable from the gray curve.
Hope this helps!

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by