The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 61
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?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.