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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:47:01+00:00 2026-06-18T12:47:01+00:00

I am trying to figure out how to make the following code work without

  • 0

I am trying to figure out how to make the following code work without having to print the data multiple times (and separating the copies with ‘e’) :

plot '-' using 1:2, '-' using 1:3
-1 0.000679244 0.000246399
-0.99875 0.000687629 0.000251162
-0.9975 0.000696107 0.000256024
-0.99625 0.000704678 0.000260987
-0.995 0.000713343 0.000266052
-0.99375 0.000722103 0.000271221
-0.9925  0.00073096 0.000276496
-0.99125 0.000739913 0.000281879
-0.99 0.000748965 0.000287372

The code above generates the error message:

warning: Skipping data file with no valid points

I know, I can write the data to a file and call plot 'file' multiple times. Is there a way to avoid this? thanks!

  • 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-18T12:47:03+00:00Added an answer on June 18, 2026 at 12:47 pm

    There’s no (good) way to do this. Here’s one pretty ugly hack:

    s = "-1 0.000679244 0.000246399\n-0.99875 0.000687629 0.000251162\n-0.9975 0.000696107 0.000256024\n-0.99625 0.000704678 0.000260987\n-0.995 0.000713343 0.000266052\n-0.99375 0.000722103 0.000271221\n-0.9925  0.00073096 0.000276496\n-0.99125 0.000739913 0.000281879\n-0.99 0.000748965 0.000287372"
    
    plot sprintf('<echo "%s"',s) using 1:2, sprintf('<echo "%s"',s) using 1:3
    

    It seems that we can make it look a little prettier by using line continuation in our string …:

    inline_file ="\
    -1 0.000679244 0.000246399\n \
    -0.99875 0.000687629 0.000251162\n \
    -0.9975 0.000696107 0.000256024\n \
    -0.99625 0.000704678 0.000260987\n \
    -0.995 0.000713343 0.000266052\n \
    -0.99375 0.000722103 0.000271221\n \
    -0.9925  0.00073096 0.000276496\n \
    -0.99125 0.000739913 0.000281879\n \
    -0.99 0.000748965 0.000287372"
    
    plot sprintf('<echo "%s"',inline_file) using 1:2, \
         sprintf('<echo "%s"',inline_file) using 1:3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out how to make my layout have the following
I'm trying to figure out how my iOS app should work after Facebook make
I'm trying to figure out how to make it so that when I'm moving
I'm trying to figure out how to make jQuery slide #content2 down and replace
I'm trying to figure out a way to make demos for a program I've
I've been trying to figure out how I can make a query with MySQL
I'm trying to figure out how if there's a way to make a hostname
I'm trying to make getJSON to use JSONP object, but I can't figure out
I am trying to figure out if there is a way to make sure
I am trying to make a code that does the following: Multiplying the digits

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.