Plotting a Single Point with Gnuplot

Sometimes simple things can be very hard to do. For instance plotting a single point with gnuplot. Luckily, there are two horrible hacks which allow you to accomplish this from the gnuplot prompt (putting the point’s coordinates in a file is of course just the easy way out…).

Method 1:
gnuplot> plot “< echo ‘x   y’”

(Set x and y to your point’s x and y coordinate)

Method 2:
gnuplot> plot “-”     (press shift enter)
x    y        (press enter)
e

One Response to “Plotting a Single Point with Gnuplot”

  1. This information is really helpful.
    I would gladly strangle all the people who helped gnuplot arrive to be the most important plotting tool software without even thinking of resolving this banal task.

Discussion Area - Leave a Comment




   


   Twitter
   Impressum