I have a file of points (x, y) that I plot using gnuplot. If I have another file that shows which point is linked with which other point by an edge (e.g. (3.8, 6) linked to (4,7)), is it possible to visualise/plot this edges between points ?
Share
depending on how your data is organized, you may want to look into plotting
with vectors.For example, if your datafile looks like:
You can plot this using:
EDIT
Assuming all the points in your datafile are repeated, you can do the following:
If they’re not repeated, you can do:
Note that you can play around with the linestyles (
linecolororlc,pointtypeorpt,linewidthorlwetc. to make the points appear the same.)