Plotting Issue with the specific type of plot having both axis, several legend type and value in output?
2 次查看(过去 30 天)
显示 更早的评论
want to make my plot something like this having line at maximum and minimum values of y and put some legend there and after that also legend for different plot also and return value of x and y with min and max values.
1. How can I plot like this? 2. Also put in legend values of (x at ymax,ymax)(x at ymin, ymin) 3. Make some small line with legend there for max and min value 4. make legend for plot? 5. Also limit the range of X-Axis? 6. Both upper and lower axis header, also y axis header ? 7. Name of Total plot?
0 个评论
采纳的回答
dpb
2013-8-9
1. Just put x,y into an array or vector and array and call plot to start. Then add all the stuff you want.
doc plot
2.
doc min % also not alternate optional return values
doc legend
doc text
doc num2str % will likely be of help here or
doc sprintf % and friends
3. See (2) and
doc line
4. See (2)
5.
doc xlim % and friends
6. Don't know what this means.
7.
doc title
All in all, you've hounded the forum w/ this same request over and over and folks have given you all kinds of code snippets and more that solve all the questions above. It's time to sit down and start using the command line and online doc and build up the plot as you wish instead of asking for others to hand you a solution.
There's plenty of background and examples of enhancement of basic 2D graphics in the online documentation to do all of the above (other than the possible exception of (6) that as say, don't know what is intended).
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!