Plotting Issue with the specific type of plot having both axis, several legend type and value in output?

2 views (last 30 days)
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?

Accepted Answer

dpb
dpb on 9 Aug 2013
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).

More Answers (0)

Community Treasure Hunt

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

Start Hunting!