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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:23:33+00:00 2026-05-29T07:23:33+00:00

Currently, I’m trying to create a 3d parametric graph similar to this: which can

  • 0

Currently, I’m trying to create a 3d parametric graph similar to this:

which can be found here: http://gnuplot.sourceforge.net/demo/surface1.html.

With script here: http://gnuplot.sourceforge.net/demo/surface1.17.gnu

My graph looks like this:

enter image description here

and I’m using this:

set datafile separator ","
set parametric
x0 = 0 
x1 = 1
x2 = 2
splot 'January5.csv' u x0:1:3 with lines, 'test.csv' u x1:1:2 with lines

Obviously my graph is lacking in comparison. I really like the ability of the first graph in plotting along the x-axis. I’ve been trying to replicate this, but have been failing so far.

  • 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-29T07:23:34+00:00Added an answer on May 29, 2026 at 7:23 am

    You don’t really need to rely on parametric if you just want to plot raw data from a file.

    With sample data xyz.txt that looks like noisy sinusoidal time-series:

    1 0 9.43483356296457
    1 0.0204081632653061 10.2281885806631
    1 0.0408163265306122 10.9377108185805
    ...
    3 0.959183673469388 10.2733398482972
    3 0.979591836734694 10.1662011241681
    3 1 10.4628112585751
    

    (First column is an integer values coding x locations, 2nd and 3rd columns are for y and z. I appended the R script I used to generate those data at the end.)

    I would simply use

    splot 'xyz.txt' using 1:2:3 with impulses
    

    where impulses draws vertical lines from the minimum of z. You can change this bevahior; for example, if you want to start at z=0, you could use

    set zrange [-1:12]
    set ticslevel 0
    zmin = 0
    zr(x) = (x==0 ? zmin : x)
    splot 'xyz.txt' using 1:2:(zr($3)) with impulses
    

    Note that I used regularly spaced values for y, but that doesn’t really matter.

    enter image description here

    Other variations are possible, of course. Maybe Fence plots with a some-liner or Wall charts might be of further assistance.


    R script used to generate xyz.dat:

    n <- 50  # number of observation per sequence
    k <- 3   # number of sequences
    t <- seq(0, 1, length=n)  # sampling rate
    xyz <- data.frame(x=rep(1:k, each=n), y=t, z=sin(2*pi*t*2.1)+.25*rnorm(n*k)+10)
    write.table(xyz, file="xyz.txt", row.names=FALSE, col.names=FALSE)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm learning C++ and I've been trying to create a simple image processing
Currently, my ListViews look like this: How can I achieve that Windows 7 native
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently IIS sends an expires http header of yesterday minus 1 hour on ASP.NET
Currently I am debugging the signing of an Android app. And this would be
Currently I have a web service running in a tomcat (http:// localhost:8080/myApp/getUsers ). My
Currently I have a web service, which loads up any plugins located within its
Currently local storage for javascript is limited to cookies, which makes robust client side
Currently I’m trying to get the hang of a block copy with my current
Currently I am download data from a server and I have this line to

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.