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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:39:37+00:00 2026-06-03T21:39:37+00:00

im trying to save a graph as a jpeg but for some reason i

  • 0

im trying to save a graph as a jpeg but for some reason i cant get it to work. Im following the example in the Manning Gnuplot in action but no jpeg seems to be created when i replot. Below is the code, if someone could point out where im going wrong i would really appreciate it.

gnuplot> plot sin(x)
gnuplot> set terminal jpeg
Terminal type set to 'jpeg'
Options are 'nocrop font "arial,12" fontscale 1.0 size 640,480 '

gnuplot> set output "c:\Users\*****\Desktop\sinxplot.jpeg"
gnuplot> replot
gnuplot> set terminal wxt enhanced
Terminal type set to 'wxt'
Options are '0 enhanced'
gnuplot> set output
gnuplot> 

FYI, Im using version 4.6 patchlevel 0

  • 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-03T21:39:38+00:00Added an answer on June 3, 2026 at 9:39 pm

    gnuplot uses \ as escape character in strings, so that probably messes up your path.
    try using single quotes instead of double, or use \\ as path separator.

    (oh, and by the way: jpeg isn’t really goot for plots because of it’s compression algorithm which results in having artefacts, png is much better here.)

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

Sidebar

Related Questions

I'm trying to save a file at path WindowsFormsApplication1\WindowsFormsApplication1\SaveFile but the following code returning
I'm trying to save some data into an array but unfortunately all the data
Im trying to save a simple script in netbeans to htdocs, but i only
I am trying to save images using the following code: - (void)writeData{ if(cacheFileName==nil) return;
I'm trying to save some UserControl-Infos into a List like this: List<UserControlDetails> myList; public
I'm trying to do a cascading save on a large object graph using JPA.
trying to save a step and combine these two queries but not sure how
I am trying to create a graph and save it as an image. I
Just trying to save some clicking and typing while I create a service. Right
When trying to save an uploaded file, I get this error and are having

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.