cgImage in PostScrpt files [message #87257] |
Wed, 22 January 2014 02:25  |
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   |
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   |
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   |
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 #87276 is a reply to message #87266] |
Wed, 22 January 2014 08:08  |
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.
|
|
|