Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Multiple Vertical Lines inside Plotyy
Replies: 2   Last Post: Jan 25, 2013 2:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kamuran turksoy

Posts: 58
Registered: 9/23/10
Multiple Vertical Lines inside Plotyy
Posted: Jan 24, 2013 5:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have two data-sets and i want to plot them using plotyy to have two different scales. Second data-set is all zeros except in some points. i want to plot the second data-set 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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.