Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Improve the resolution of jpeg or eps plots

7,977 views
Skip to first unread message

sukanto

unread,
Jun 22, 2009, 3:36:58 PM6/22/09
to
How can I improve the quality of the jpeg / eps outputs (i.e. how to
produce high resolution output images) ?

Currently I use the following command:
set terminal jpeg enhanced

This produces a 640x480 pixels jpeg output.

Thanks and Regards,
Sukanto

Pete Gregory

unread,
Jun 22, 2009, 3:57:41 PM6/22/09
to
sukanto wrote:
> How can I improve the quality of the jpeg / eps outputs (i.e. how to
> produce high resolution output images) ?
>
> Currently I use the following command:
> set terminal jpeg enhanced
>
> This produces a 640x480 pixels jpeg output.
>

gnuplot> help set terminal jpeg

Syntax:
set terminal jpeg
{{no}interlace}
{tiny | small | medium | large | giant}
{font <face> {<pointsize>}}
{size <x>,<y>} {{no}crop}
{{no}enhanced}
{<color0> <color1> <color2> ...}
[etc]
HTH

sfeam

unread,
Jun 22, 2009, 4:27:09 PM6/22/09
to
sukanto wrote:

> How can I improve the quality of the jpeg / eps outputs (i.e. how to
> produce high resolution output images) ?

If you want high resolution, you definitely should not be using jpeg.
jpeg is by design a "lossy" format. The most straightforward thing
for you to do is to issue the identical commands in gnuplot, but
select
set term png enhanced
instead. The png and jpeg output uses exactly the same driver, but png
is a loss-less format. If you want more pixels of information, you
can specify a size:
set term png enhanced size 1280,1024


Eps is a wholly different matter. It is a vector language, and hence
the resolution is limited only by the viewer or print device.

sukanto

unread,
Jun 24, 2009, 12:58:52 AM6/24/09
to
Thanks Pete and sfeam. It worked.
0 new messages