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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:32:12+00:00 2026-06-08T06:32:12+00:00

I am running gnuplot version 4.6 (patchlevel 0) on Windows XP. I have placed

  • 0

I am running gnuplot version 4.6 (patchlevel 0) on Windows XP. I have placed two files, data.txt and plot.plt in the same directory.

The contents of data.txt are as follows (it is just sin x from 0 to 2 Pi):

0.  0.
0.5 0.479425538604203
1.  0.8414709848078965
1.5 0.9974949866040544
2.  0.9092974268256817
2.5 0.5984721441039565
3.  0.1411200080598672
3.5 -0.35078322768961984
4.  -0.7568024953079282
4.5 -0.977530117665097
5.  -0.9589242746631385
5.5 -0.7055403255703919
6.  -0.27941549819892586

The contents of plot.plt are as follows:

set title 'My Brown'
set xlabel 'my x'
set ylabel 'my y'
plot 'data.txt' lc rgb 'brown'
set term postscript eps enhanced "Arial" 24
set output 'example.eps'

When I open plot.plt in gnuplot, the data are indeed plotted. Moreover, a file example.eps is created in the same folder as data.txt and plot.plt. However, example.eps appears to be blank/empty. When I right-click on the example.eps and then select Properties, it says:

EPS File

Size: 0 bytes

Size on disk: 0 bytes

When I open example.eps in Adobe Photoshop Elements, I just see a blank (white) file.

Do you have any thoughts about what I am doing wrong?

  • 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-08T06:32:13+00:00Added an answer on June 8, 2026 at 6:32 am

    The eps file doesn’t get written until a plot command is specified after specifing the output. Possible solutions:

    • 1) Move your plot command after your set output command
    • 2) add a replot command to the end of your script

    The differences in these two approaches are that 1 only creates an eps file whereas 2 will create a plot in your default terminal and then re-create the plot in your eps file.

    In the event that you’re not aware, gnuplot can plot functions without datafiles. To plot sin(x), you just need to do: plot sin(x) — no datafile necessary.

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

Sidebar

Related Questions

I am running gnuplot version 4.6 (patchlevel 0) for Windows. The Windows version of
Running Python, I have an image and some data calculated for different ROIs (regions
Running on Windows I have a repository for a project, I would now like
Im trying to get gnuplot up running for C++ environment in XCode. Im using
Running SQL Server 2008 (not R2). I have a few reports that have URLs
Running rails 3.2.3 with guard/spork/rspec/factory_girl and have the following in my spec helper: Spork.prefork
Is it possible to put some data into gnuplot right on it's prompt? Like
Running Windows PHP 4.4.2 \cli\php.exe fails with an error Cannot find php4ts.dll if the
Running IIS 6 with a main website using .net 4. I have many sub
Running Linux (Ubuntu 11.10), the same regular expression works in JavaScript, but fails when

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.