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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:36:57+00:00 2026-05-29T06:36:57+00:00

I often plot graphs in gnuplot prompt shell, like this: gunuplot> plot sin(x) with

  • 0

I often plot graphs in gnuplot prompt shell, like this:

gunuplot> plot sin(x) with linespoints pointtype 3

and the figure showed up is great.

Today, I save the graph in a .png file, like this:

gnuplot> set term png
gnuplot> set output "output.png"
gunuplot> plot sin(x) with linespoints pointtype 3

Then, I open output.png with eog in Ubuntu, like this:

$ eog output.png

I found that, the output.png displayed in eog is not as good as the figure plotted in prompt shell.

Why is that? Do I need to adjust some settings before save the output.png?

PS

I found that a way around it, first,

set term postscript
set output "output.ps"

then in linux shell,

$ convert output.ps output.jpg

This way some sort of solve the my problem.

  • 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-29T06:36:58+00:00Added an answer on May 29, 2026 at 6:36 am

    The source of your problems with the PNG quality is most likely the missing antialiasing in the png terminal of Gnuplot. Since you give no screenshots, I’m not sure what you mean when talking about bad linewidth, but here’s how it looks for me (on MacOS). This screenshot shows the output of gnuplot’s native aquaterm output:

    A plot using gnuplot's native aquaterm output

    If we create a png using set term png, the lines become “jumpy” and pixellated:

    The sine curve, plotted using the png terminal

    However, there is a version of the png terminal that uses the Cairo libs for rendering, and that makes the output far more smooth and nicer. set term pngcairo gives this result:

    The sine curve, plotted using the pngcairo terminal

    You can use set terminal to check whether this terminal version is available for you. If it is, this should save you conversion work and also give better image quality than a JPG (which is not an ideal format for line art).

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

Sidebar

Related Questions

Often times I see something like this: <body> <div class=container> </div> </body> Why not
Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
Often when I post a comment or answer on a site I like to
Often I see layouts on the iPhone like the one I attached. How is
I would like to plot the greasy test signal in Matlab, and then plot
Often when developing I am confronted with a nested object that I'd like to
Often when working with templates, you end up with something like: template <T> class
Often I create a static html prototype/skeleton for back-end developers I work with. This
I'm an R/ggplot newbie. I would like to create a geom_line plot of a
I often have function such as: sin(a*w*t + p) where: w = natural frequency

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.