comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgImage in PostScrpt files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cgImage in PostScrpt files [message #87257] Wed, 22 January 2014 02:25 Go to next message
iary is currently offline  iary
Messages: 6
Registered: January 2014
Junior Member
Dear All,

I'm trying to learn how cgImage works, to include some density plots like this

http://www.idlcoyote.com/gallery/density_plot.png

in my PhD thesis.

Unfortunately, I need the output to be a PS file (not the best choice for cgImage because of the AlphaChannel background, I understood) but I'm not satisfied by its quality.
For instance, if I simply run this routine

http://www.idlcoyote.com/gallery/density_plot.pro

the output looks OK in graphic window and .png, but in postscript the color-coded "pixels" are somehow "blurred", without sharp edges.

I played a bit with the cgImage keywords (transparent, alphaBackgroundImage, ...) but nothing is changed :(

How may I tackle this problem?

Thank you in advance,

iary
Re: cgImage in PostScrpt files [message #87258 is a reply to message #87257] Wed, 22 January 2014 04:03 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
iary writes:

> I'm trying to learn how cgImage works, to include some density plots like this
>
> http://www.idlcoyote.com/gallery/density_plot.png
>
> in my PhD thesis.
>
> Unfortunately, I need the output to be a PS file (not the best choice for cgImage because of the AlphaChannel background, I understood) but I'm not satisfied by its quality.
> For instance, if I simply run this routine
>
> http://www.idlcoyote.com/gallery/density_plot.pro
>
> the output looks OK in graphic window and .png, but in postscript the color-coded "pixels" are somehow "blurred", without sharp edges.
>
> I played a bit with the cgImage keywords (transparent, alphaBackgroundImage, ...) but nothing is changed :(
>
> How may I tackle this problem?

Don't know. It's hard to imagine how blurred pixels in a PostScript file
could be turned into sharp pixels in a PNG file. I guess I'd have to see
some evidence. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: cgImage in PostScrpt files [message #87259 is a reply to message #87257] Wed, 22 January 2014 04:04 Go to previous messageGo to next message
andeh is currently offline  andeh
Messages: 23
Registered: April 2011
Junior Member
On Wednesday, 22 January 2014 10:25:36 UTC, iary wrote:
> Dear All,
>
>
>
> I'm trying to learn how cgImage works, to include some density plots like this
>
>
>
> http://www.idlcoyote.com/gallery/density_plot.png
>
>
>
> in my PhD thesis.
>
>
>
> Unfortunately, I need the output to be a PS file (not the best choice for cgImage because of the AlphaChannel background, I understood) but I'm not satisfied by its quality.
>
> For instance, if I simply run this routine
>
>
>
> http://www.idlcoyote.com/gallery/density_plot.pro
>
>
>
> the output looks OK in graphic window and .png, but in postscript the color-coded "pixels" are somehow "blurred", without sharp edges.
>
>
>
> I played a bit with the cgImage keywords (transparent, alphaBackgroundImage, ...) but nothing is changed :(
>
>
>
> How may I tackle this problem?
>
>
>
> Thank you in advance,
>
>
>
> iary

Hello,

Are you using Preview on a Mac to look at your PDF?

c.f. http://www.idlcoyote.com/ps_tips/maccolors.php


Cheers,

Andy
Re: cgImage in PostScrpt files [message #87260 is a reply to message #87259] Wed, 22 January 2014 04:06 Go to previous messageGo to next message
andeh is currently offline  andeh
Messages: 23
Registered: April 2011
Junior Member
On Wednesday, 22 January 2014 12:04:09 UTC, AJAS wrote:
> On Wednesday, 22 January 2014 10:25:36 UTC, iary wrote:
>
>> Dear All,
>
>>
>
>>
>
>>
>
>> I'm trying to learn how cgImage works, to include some density plots like this
>
>>
>
>>
>
>>
>
>> http://www.idlcoyote.com/gallery/density_plot.png
>
>>
>
>>
>
>>
>
>> in my PhD thesis.
>
>>
>
>>
>
>>
>
>> Unfortunately, I need the output to be a PS file (not the best choice for cgImage because of the AlphaChannel background, I understood) but I'm not satisfied by its quality.
>
>>
>
>> For instance, if I simply run this routine
>
>>
>
>>
>
>>
>
>> http://www.idlcoyote.com/gallery/density_plot.pro
>
>>
>
>>
>
>>
>
>> the output looks OK in graphic window and .png, but in postscript the color-coded "pixels" are somehow "blurred", without sharp edges.
>
>>
>
>>
>
>>
>
>> I played a bit with the cgImage keywords (transparent, alphaBackgroundImage, ...) but nothing is changed :(
>
>>
>
>>
>
>>
>
>> How may I tackle this problem?
>
>>
>
>>
>
>>
>
>> Thank you in advance,
>
>>
>
>>
>
>>
>
>> iary
>
>
>
> Hello,
>
>
>
> Are you using Preview on a Mac to look at your PDF?
>
>
>
> c.f. http://www.idlcoyote.com/ps_tips/maccolors.php
>
>
>
>
>
> Cheers,
>
>
>
> Andy

What I meant to say was, if you look at a post-script file on a mac, it is converted to pdf by preview first.
Re: cgImage in PostScrpt files [message #87261 is a reply to message #87260] Wed, 22 January 2014 04:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
AJAS writes:

> What I meant to say was, if you look at a post-script file on a mac, it is converted to pdf by preview first.

Oh, that could be. Yes, the Mac Preview application has a history of
screwing up the viewing of PostScript files. Nothing wrong with the file
itself, of course. Is this what you are seeing?

http://www.idlcoyote.com/ps_tips/blurred.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: cgImage in PostScrpt files [message #87265 is a reply to message #87261] Wed, 22 January 2014 07:19 Go to previous messageGo to next message
iary is currently offline  iary
Messages: 6
Registered: January 2014
Junior Member
>
> Oh, that could be. Yes, the Mac Preview application has a history of
>
> screwing up the viewing of PostScript files.

Yes! The blurring is definitevely due to Preview...
I recently moved to Mac OS and I haven't figured out yet that you can spend x000$ and still have some ugly feature even in the basic document previewer.
In moment like this I really miss my old-but-trusted Debian-pc.

Thank you guys for the help!
Re: cgImage in PostScrpt files [message #87266 is a reply to message #87261] Wed, 22 January 2014 07:23 Go to previous messageGo to next message
iary is currently offline  iary
Messages: 6
Registered: January 2014
Junior Member
>
> Oh, that could be. Yes, the Mac Preview application has a history of
>
> screwing up the viewing of PostScript files.

Yes! The blurring is definitevely due to Preview...
I recently moved to Mac OS and I haven't figured out yet that you can spend x000$ and still have some ugly feature even in the basic document viewer.
In moment like this I really miss my old-but-trusted Debian-pc.

Thank you guys for the help!
Re: cgImage in PostScrpt files [message #87276 is a reply to message #87266] Wed, 22 January 2014 08:08 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Well, you can always turn off that feature (aliasing).

As an addendum, I've started going away from using EPS files in papers/thesis/etc using LaTeX. The images I was making were far too large - it made scrolling through the doc problematic.

Now, I create the EPS, but convert it to a PNG to include in LaTeX. I have yet to find an entity that won't take PNG files (although most say they prefer EPS). If you're using Coyote routines and want to try this method out, just be sure to adjust the RESIZE keyword when converting the EPS.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Box and Whisker Plotting
Next Topic: Re: Removing (or replacing) substrings in a string array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:07:50 PDT 2025

Total time taken to generate the page: 0.16058 seconds