I wanted a discrete plot of $y = -\dfrac{3}{2} x$ and used
DiscretePlot[-3/2 x, {x, -20, 20}]
I do not like the vertical lines shown in the plot but I did not see an option to get rid of them.
I then did this kludge to get rid of the vertical lines
ListPlot[Table[{x, -((3 x)/2)}, {x, Table[x, {x, -20, 20, 1}]}]]
I want to add arrowheads showing that the plot continues upward on the left and downward on the right.
I found this answer that uses BaseStyle, but could not figure out how to use it to place arrows at each endpoint showing direction.
ListPlot[Table[{x, -((3 x)/2)}, {x, Table[x, {x, -20, 20, 1}]}],
BaseStyle -> Arrowheads[{-20, 30, 20, -30}],
PlotStyle -> {Blue, Thick}] /. Line -> Arrow
I wanted something like this
Is there a simple way to do this?





Filling->Noneremoves lines. From your text, it is not clear where you want to have the arrowheads. If it is at the axis add this option:AxesStyle->Directive[Arrowheads[0.005]]. If you have something else in mind, please sketch what you are after. – Alexei Boulbitch Oct 11 '23 at 11:53