I need to plot some points in a graph; just a simple list of x and y values and then connect them with line segments. Currently, I am graphing it in excel and importing the image into latex and it doesn't look good. Is there any way to plot coordinates just using latex?
[Tex/LaTex] the best way to plot coordinates in Latex
plot
Best Answer
Data points can be directly entered using the
data
command from thedatavisualization
library. The same applies if you have the function instead of the data points. Here are some examples adapted from the TikZ-PGF manual:Changing the axes style to scientific, e.g., can give a different look:
Also, if you have the function at hand, this can be quite easy:
with the same result as the data points entry: