How to change the stem line color
古いコメントを表示
I am trying to do a stem plot with all the lines the same color. When I plot any of the examples from the website, all the lines have a gradient color on them, which makes my dataset confusing. I am using 2016a.
I have tried to change the color parameter of the data, but all this changes is the marker color. Please can someone direct me in the right direction as to how I can change this? I have included a picture of what my output looks like:

6 件のコメント
Azzi Abdelmalek
2016 年 4 月 27 日
Can you post the code that gives this figure?
Daniel Carr
2016 年 4 月 27 日
Baptiste
2024 年 5 月 2 日
Hello everybody, I am trying to do the opposite by ploting using stem with a gradient color depending of my Yaxis values, when I plot it with stem I have just two colors for the selected values.
Baptiste
2024 年 5 月 3 日
Ok thank you :), And do you think it is possible to plot in 3D using stem3 X, Y and Z and have a color gradient in Z axis ?
Voss
2024 年 5 月 3 日
Yeah, it's probably possible. Not with stem3, but with patch or surface.
採用された回答
その他の回答 (1 件)
Mike Garrity
2016 年 4 月 27 日
0 投票
That looks like the graphics driver bug which was discussed in this thread. Do you have an Intel GPU and Windows 10? My understanding is that the bug is limited to a particular Windows 10 driver version from Intel.
If that's the case, that thread has a couple of workarounds.
カテゴリ
ヘルプ センター および File Exchange で Blue についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
