Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8129015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:07:47+00:00 2026-06-06T08:07:47+00:00

I have a file of points (x, y) that I plot using gnuplot. If

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:07:48+00:00Added an answer on June 6, 2026 at 8:07 am

    depending on how your data is organized, you may want to look into plotting with vectors.
    For example, if your datafile looks like:

    #x1 y1 x2 y2
     1  1  3   3
    

    You can plot this using:

    set style arrow 1 nohead
    plot "my_arrows.dat" using 1:2:($3-$1):($4-$2) with vectors arrowstyle 1
    

    EDIT

    Assuming all the points in your datafile are repeated, you can do the following:

    set style arrow 1 nohead
    plot "my_arrows.dat" using 1:2:($3-$1):($4-$2) with vectors arrowstyle 1,\
         "my_arrows.dat" using 1:2 w points
    

    If they’re not repeated, you can do:

    set style arrow 1 nohead
    plot "my_arrows.dat" using 1:2:($3-$1):($4-$2) with vectors arrowstyle 1,\
         "my_arrows.dat" using 1:2 w points ls 1 lc rgb "red" pt 1,\
         "my_arrows.dat" using 3:4 w points ls 1 lc rgb "red" pt 1
    

    Note that you can play around with the linestyles (linecolor or lc, pointtype or pt, linewidth or lw etc. to make the points appear the same.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data file which I want to plot with gnuplot. However, for
I have a UITextView that points to the File's Owner as its delegate, and
I am trying to plot a graph using gnuplot. I have six text files.
I have a file that has numerous data points, all formatted like XX.XXX The
I have a list of handles to points that have been plotted using matplotlib.pyplot
I have a JavaScript file that prints the title attribute of the child img
i have a file with the points for all the states. i want to
I have an svg file where I want to remove points if the x
I have two quick questions: When do two file descriptors point to the same
When you define an extension-point in an Ant build file you can have it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.