2
$\begingroup$

This question already has an answer here:

Given two lists

list1 =
  {{1, 0.5}, {2, 0.707107}, {3, 0.866025}, {4, 1.}, {5, 1.11803}, {6, 1.22474}, 
   {7, 1.32288}, {8, 1.41421}, {9, 1.5}, {10, 1.58114}};
list2 = 
  {{1, 0.85}, {2, 1.20208}, {3, 1.47224}, {4, 1.7}, {5, 1.90066}, {6, 2.08207}, 
   {7, 2.24889}, {8, 2.40416}, {9, 2.55}, {10, 2.68794}};

of xy data pairs which correspond in their x-values, how can I make a plot showing the points in the two lists with vertical lines between them? It should look like:

enter image description here

$\endgroup$

marked as duplicate by m_goldberg, Anton Antonov, Bob Hanlon, Jason B. plotting Dec 22 '17 at 19:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 10
    $\begingroup$ Try ListPlot[{list1, list2}, Filling -> {1 -> {2}}]. $\endgroup$ – b.gates.you.know.what Dec 22 '17 at 13:44

Browse other questions tagged or ask your own question.