Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Multiple Vertical Lines inside Plotyy
Posted:
Jan 24, 2013 5:14 PM


I have two datasets and i want to plot them using plotyy to have two different scales. Second dataset is all zeros except in some points. i want to plot the second dataset as vertical lines. In regular plot function i can use plot([x x],[y y]) or i can also use line function. First when i use either ways, when i try to insert legends it puts one legend for each line. I want to have one legend for all vertical lines. Secondly i could not find any way how to use either plot or line inside plotyy function for multtiple vertical lines.
Any suggestions?
Thanks



