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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:33:53+00:00 2026-05-24T09:33:53+00:00

I have got x and y values in a data file to plot bezier

  • 0

I have got x and y values in a data file to plot bezier curves. Each (x, y) pair denotes a bezier curve. Now I need to separate the segments drawing vertical lines (dotted lines preferably). The segements should be at each (x, y) so that the multiple bezier curves are separated and can be analysized. The input file is below :

0.07     0.543022222222 

0.06     0.694821399177 

0.08     0.734375 

0.12     0.743377777778 

0.11     0.795822222222 

0.09     0.772946197226 

0.14     0.798727048915 

0.05     0.6118208 

0.06     0.517422222222   

The script for gnuplot is:

set term x11 persist

set title "Animation curves"

set xlabel "Time (secs.)"

set ylabel "Parameter"

plot "curve.dat" using 1:2 notitle smooth csplines

How can I achieve it? Thank you.

  • 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-05-24T09:33:55+00:00Added an answer on May 24, 2026 at 9:33 am

    You could use vectors to draw those separation lines. The following script should do the job:

    set key off
    set style line 2 lt 0 lc 1 lw 2
    plot [0.04:0.15] "Data.csv" u 1:2 smooth csplines ls 1, "" u 1:($2-0.1):(0):(0.2) w vectors nohead ls 2
    
    • set key off: Makes the notitle keyword redundant for all plots
    • set style line 2 lt 0 lc 1 lw 2: Discribes how the separation lines should look like. In this case:

      • lt 0: dashed
      • lc 1: red
      • lw 2 line width of 2
    • "" u 1:($2-0.1):(0):(0.2) w vectors nohead ls 2: Actually plots the separation lines:

      • "" use the previously used data file
      • u 1:($2-0.1):(0):(0.2): Plot the vector between the positions (x, y - 0.2) and (x, y + 0.2) of the data file.
      • w vectors nohead: Use vectors and let them have no head.
      • ls 2: Use the previously defined line style 2.

    A problem you might have, is that in your data file there are at position 0.06 two values defined, which let gnuplot take the mean of those two values. This is why the separation line at position x=0.06 is longer than at other positions, as you can see in the following graph:

    Result of the script above

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

Sidebar

Related Questions

I have got a form that posts values to a page in a wizard.
I have some difficulties in my project. I got the RGB values from a
Hay guys, i need help with a REGEX. I have the got the value
We have got a custom MembershipProvider in ASP.NET . Now there are 2 possible
I have a binary file which I'm reading where some 2 byte values are
I have a data file with the format from above. I loaded it into
I've got a file containing several channels of data. The file is sampled at
In my previous question .I have got the solution to check out which data
I've got a data frame that contains several interleaved values that occurred in a
I've got small CSV file with data. I want all variables in a row

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.