Message Boards Message Boards

0
|
3788 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

ListPlot + Line

Posted 10 years ago

How does one combine a ListPlot and a line through two specific points in the same graphic element? I apologize in advance for asking such a simple question.

Thanks,

Dean Sparrow, Mathematica 9

POSTED BY: Dean Sparrow
2 Replies

Thank you very much.

POSTED BY: Dean Sparrow

Something like this?

data = Range[1, 10];
lp = ListPlot[data];
line = Graphics[Line[{{0, 6}, {10, 6}}]];
Show[lp, line]

Tim

POSTED BY: Tim Mayes
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract