フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

When I have colors on a graph with 2 variables corresponding to different values, how do I make a legend from it?

1 回表示 (過去 30 日間)
Siddharth Gopujkar
Siddharth Gopujkar 2017 年 12 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am making a graph where there is a variable on the x-axis and one on the y-axis. Both variables have 3 levels and for every combination of the two, a certain parameter has a particular value.
Now depending on what the value is, I have marked that spot on the graph with a certain color. That is what I want to show in the legend - A certain color for a certain range. The graph has been attached for reference.
Any help would be appreciated. Thank you!

回答 (1 件)

magate
magate 2017 年 12 月 31 日
Plot NaN data for the legend.
See this answer here .

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by