when saving the figure ,the color made by stem function will change

2 ビュー (過去 30 日間)
Zen der Tasi
Zen der Tasi 2021 年 3 月 16 日
コメント済み: Zen der Tasi 2021 年 3 月 26 日
hello everyone
I got some problem here
I use the stem function to make a figure like this
but every time when i save this figure
the color of the stem will change into black like this
so i want to know is there any solution to fixed it?
(ps: the format i use was .png & .jpg)
  1 件のコメント
Zen der Tasi
Zen der Tasi 2021 年 3 月 16 日
I also had tried to change the linewidth property
but it didn't change

サインインしてコメントする。

回答 (1 件)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 3 月 25 日
Hello Zen,
Looks like your .png/.jpeg file still holds the same color. Try changing the linewidth property and use the marker property. You can also have different colors for the stem and Marker. But make sure you are giving the right value for the colors. But from your stem plot I can observe that each stem has its own depth. On general stem plot is used to plot discrete sequence data. You can try to use a stem3 plot or other different plots such as bar or surf if it suits your application. You can also have a look at different types of Matlab plots here.
  1 件のコメント
Zen der Tasi
Zen der Tasi 2021 年 3 月 26 日
thank for answer my question
I had just change the the linewidth property ,but it still doesn't work.
l closed the marker property for my specifical purpose ,so i didn't open it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by