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.
ListPlot
$\endgroup$ListPlot[{{1, 1}, {2, 1}, {3, 2}, {4, 2}, {5, 4}, {6, 2}, {7, 6}}, Filling -> Axis]
$\endgroup$