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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:38:52+00:00 2026-06-17T12:38:52+00:00

With GNU Plot, I normally process x, y, z data in three separate columns:

  • 0

With GNU Plot, I normally process x, y, z data in three separate columns:

x1, y1, z1
x2, y1, z2
...
...
xn, yn, zn

and I used splot 'filename.ext' with lines to quickly get the a 3D plot

Due to our new system requirements, we have to store data in the following form:

x1
y1
z1
x2
y2
z2
.
.
xn
yn
zn

I already written a simple code in C# to transform our results into 3 columns for easy viewing in GNU Plot.

My question is, if the data is now only a one dimensional array, is there a way to plot this in GNU Plot directly without having my program to re-saved our results as a 3 columns results?

Thank you.

Regards,
ikel

Additional info: I am running on Win7, 64 bit, and using the Win binaries of GNU Plot. Apparently, I don’t have paste, sed and popen (see discussion below).

  • 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-17T12:38:53+00:00Added an answer on June 17, 2026 at 12:38 pm

    I don’t know how to make Gnuplot interpret the input as groups of three, but if your version of Gnuplot supports popen, you can join the lines on the fly with e.g. paste or sed:

    splot '< paste - - - < filename.ext' with lines
    

    Or:

    splot '< sed "N; N; s/\n/ /g" filename.ext' with lines
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally when using interactively gnuplot I do: gnuplot> plot state_log_6548032.data using 4 with lines
I am used to plot data with gnuplot, so I can easily put the
I'm using gnuplot to plot three dimentions of data using pm3d. I'm trying to
I'm producing bifurcation diagrams (which are normally used in nonlinear dynamics). These diagrams identify
How can I plot (a 3D plot) a matrix in Gnuplot having such data
I'm trying to plot some date points: library(ggplot2) library(plyr) set.seed(1234) df <- data.frame( c1
Suppose I have a file with two columns of data file.dat . I would
I often plot graphs in GNU R / ggplot for some measurements related to
I was trying to plot a function in GNU plot, and my plot kept
I am using Gnuplot to successfully plot some time series data. However, the series

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.