# Simple: Plot pairs of numbers [closed]

I'm a beginner. I've read a book about Mathematica and thought, I had learned a lot, but apparently…

I have a list with pairs of numbers like so, assigned to a variable "list":

   list = {{1, 1}, {2, 1}, {3, 2}, {4, 2}, {5, 4}, {6, 2}, {7, 6}}


How can I plot this list, when the first number of each pair is x, the second is y? It could look something like this:

Any help is greatly appreciated. Thank you.

• You can use ListPlot – Emad kareem Sep 4 '17 at 15:08
• How did you create the plot that you are showing? – Szabolcs Sep 4 '17 at 15:14
• @Szabolcs DiscretePlot[EulerPhi[x], {x, 1, 7}] -- but it seems, DiscretePlot doesn't work on lists. – Marian Stiehler Sep 4 '17 at 15:15
• ListPlot[{{1, 1}, {2, 1}, {3, 2}, {4, 2}, {5, 4}, {6, 2}, {7, 6}}, Filling -> Axis] – Emad kareem Sep 4 '17 at 15:16
• @MarianStiehler I do not know but you can answer the question – Emad kareem Sep 4 '17 at 15:21

ListPlot[{{1, 1}, {2, 1}, {3, 2}, {4, 2}, {5, 4}, {6, 2}, {7, 6}}, Filling -> Axis]