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 8628507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:33:44+00:00 2026-06-12T08:33:44+00:00

I am new to gnuplot, I need to plot my data and display a

  • 0

I am new to gnuplot, I need to plot my data and display a small circle or an arrow at each end of the line chart. how can I do that?
I use this command to display the line chart:

plot 'data.txt' with lines
  • 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-12T08:33:45+00:00Added an answer on June 12, 2026 at 8:33 am

    I don’t know if there is a way to make lines have something at the end automatically, but I found a workaround. With this data file:

    1 1
    2 3
    3 2
    

    and the following script:

    set term png
    set out 'plot.png'
    
    stats 'data.dat' name 'a'
    # plot line, then circle only if it is the last data point
    plot 'data.dat' t 'data', \
         '' u ($0==(a_records-1)?$1:1/0):2 with points pt 7 ps 2 t 'end'
    

    I can make a plot like this:

    enter image description here

    The stats command is to find the number of data points, then the dual plot command draws the line connecting the data points, then a circle only on the last data point (determined with the a_records variable. An arrow would be trickier to draw…

    To find more info about different point/line style options, the test command at the gnuplot command line is your friend.

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

Sidebar

Related Questions

I am completely new to gnuplot and am only trying this because I need
I am using JavaPlot . In gnuplot, I would type plot data with lines
new to iOS development, i have managed to create a basic app that can
new to c#. I'm trying to make a simple system where I can search
I'm very new to Mathematica. I want to use it as a data source
New question, but really close to need to refresh page in jquery mobile .
New to Android so I'm writing small programs to get familiar with how things
New to objective-c and I just can't find the answer to this question anywhere.
New to Ruby and ROR and loving it each day, so here is my
New to XML parsing.I need to read a group of arbitrary XML files. They

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.