如何使用绘图更改图表中的线条颜色?

4 次查看(过去 30 天)
Yunhui Fan
Yunhui Fan 2023-2-24
如何使用绘图更改图表中的线条颜色?
  2 个评论
Steven Lord
Steven Lord 2023-2-24
Google Translate says this question is "How to change the line color in a chart using plotly"
Walter Roberson
Walter Roberson 2023-2-25
I wonder if that refers to https://plotly.com/matlab/ ?

请先登录,再进行评论。

回答(1 个)

Joel
Joel 2023-3-14
Hi,
You can specify the colour of the line by simply specifying a string in the plot syntax. This string can specify the line color, type of line and type of marker at each data point.
Type the command “help plot” on your command line or refer to the MATLAB Documentation for more information: 2-D line plot - MATLAB plot - MathWorks India
  1 个评论
Walter Roberson
Walter Roberson 2023-3-14
The question is about plotly which appears to be a third party package.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by