开发者

Is it possible to add colorbar properties to a maltlab plot?

开发者_开发知识库I'd really like to know if there's a way to add the colorbar properties we usually find in surface or mesh, but this time for a simple plot.

Thanx you!


Are you asking how to add a colorbar to a plot? The COLORBAR function does that, but it's really only useful if you have an object in your plot that uses a colormap, like a surface or an image.

For simple line plots, you're probably better off going with a legend.


In addition to what gnovice stated in their answer you can define your own colormap. I would suggest you model it off of a HSV scheme since you're wanting to vary the intensity. That was you can select the color you want and vary just the intensity value of it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜