I am new to mathematica. I have been trying to plot a list of values. The list looks somewhat like this:
list = {{1, 2}, {1, 2, 3}, {1, 2, 3, 4}}
What I want is to plot, $\{1,2\}$ (both these points) at $x =1$, and points $\{1,2,3\}$ at $x =2$, etc. I tried converting the list to a form $\{\{1,1,1\},\{2,2,2\},\{3,3\},\{4\}\}$ and list plotting, but this puts $\{1,2\}$ at $x = 3$, rather than $x = 1$. So if I can make ListPlot
plot first values at $x = 3$ and go backwards from there my problem can be solved. But I could not find a way to specify the $x$ values for ListPlot
.
ListPlot
you used to your question, so that people can see what you've tried. $\endgroup$