Plotting horizontal and vertical lines in Mathematica

If you’re actually using Plot (or ListPlot, et c.), the easiest solution is to use the GridLines option, which lets you specify the x– and y-values where you want the lines drawn. For instance: EDIT to add: Of course, this solution works if you just want to draw a line at a single, given number. For instance, if you want to reproduce the … Read more