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

Home » Public Forums » archive » Re: Religious Wars
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
Re: Religious Wars [message #78059] Tue, 25 October 2011 07:45
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vto writes:

> I have to add, that running a_orig.eps through eps2eps fixes the
> problem for gv. I haven't checked, it just might fix the bounding box
> to the correct size, an issue IDL has had all the time.

Yes, I think this is a bounding box issue, too. But it
is easier to just confine all encapsulated PostScript
files to be in Portrait mode, and then all is well.

I've checked the new files into the Coyote Library and
updated these files. This will prevent problems in
cgWindow and elsewhere.

http://www.idlcoyote.com/programs/zip_fils/coyoteprograms.zi p

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Religious Wars [message #78060 is a reply to message #78059] Tue, 25 October 2011 07:33 Go to previous message
vto is currently offline  vto
Messages: 5
Registered: January 2011
Junior Member
On Oct 25, 10:25 am, vto <vto...@cfa.harvard.edu> wrote:
> On Oct 24, 6:07 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>
>
>
>
>
>
>> Folks,
>
>> I am not trying to start a religious war here, but I
>> have some reason to believe the software Mac owners
>> use to view PostScript files is screwy. :-)
>
>> Or maybe it's Windows user's software, I don't know.
>> I'm just trying to get to the bottom of a perplexing
>> problem.
>
>> The issue concerns encapsulated PostScript files. Here
>> are two encapsulated PostScript files:
>
>>   http://www.idlcoyote.com/misc/a_orig.eps
>>   http://www.idlcoyote.com/misc/a_modified.eps
>
>> If I open these files on my Windows machine, using the
>> latest version of GSView (a GUI to GhostScript), then
>> the a_orig.eps file looks perfect as long as I modify the
>> GSView view to landscape orientation. If I view the
>> a_modified.eps file, the output looks cut off at the far
>> end in both portrait and landscape orientations.
>
>> Oddly enough, Mac users find these results, too, but
>> for the opposite files!!!
>
>> If I put these documents in, say, Google Docs, then
>> Google appears to agree with the Windows outlook
>> on things. Of course, if I put them in Windows documents
>> (Word, Framemaker, etc.) they agree with the Windows
>> outlook, too. In fact, the only thing that *doesn't*
>> agree with the Windows outlook, that I have been able
>> to find in my experimenting, are Macintosh applications.
>
>> So, here is my question. Is this a religious war? Should
>> these eggs be broken on the big end or the little end?
>
>> Any help greatly appreciated!
>
>> Cheers,
>
>> David
>
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Hi David,
>
> I tried these files on my Mac (Snow Leopard). The result is the same
> for distiller, preview, and gs. The a_orig.eps file looks cut-off and
> the a_modified.eps looks fine. Rotating the figures does not change
> the result.
>
> Regards,
>
> Volker

I have to add, that running a_orig.eps through eps2eps fixes the
problem for gv. I haven't checked, it just might fix the bounding box
to the correct size, an issue IDL has had all the time.

Volker
Re: Religious Wars [message #78061 is a reply to message #78060] Tue, 25 October 2011 07:25 Go to previous message
vto is currently offline  vto
Messages: 5
Registered: January 2011
Junior Member
On Oct 24, 6:07 pm, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I am not trying to start a religious war here, but I
> have some reason to believe the software Mac owners
> use to view PostScript files is screwy. :-)
>
> Or maybe it's Windows user's software, I don't know.
> I'm just trying to get to the bottom of a perplexing
> problem.
>
> The issue concerns encapsulated PostScript files. Here
> are two encapsulated PostScript files:
>
>   http://www.idlcoyote.com/misc/a_orig.eps
>   http://www.idlcoyote.com/misc/a_modified.eps
>
> If I open these files on my Windows machine, using the
> latest version of GSView (a GUI to GhostScript), then
> the a_orig.eps file looks perfect as long as I modify the
> GSView view to landscape orientation. If I view the
> a_modified.eps file, the output looks cut off at the far
> end in both portrait and landscape orientations.
>
> Oddly enough, Mac users find these results, too, but
> for the opposite files!!!
>
> If I put these documents in, say, Google Docs, then
> Google appears to agree with the Windows outlook
> on things. Of course, if I put them in Windows documents
> (Word, Framemaker, etc.) they agree with the Windows
> outlook, too. In fact, the only thing that *doesn't*
> agree with the Windows outlook, that I have been able
> to find in my experimenting, are Macintosh applications.
>
> So, here is my question. Is this a religious war? Should
> these eggs be broken on the big end or the little end?
>
> Any help greatly appreciated!
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,

I tried these files on my Mac (Snow Leopard). The result is the same
for distiller, preview, and gs. The a_orig.eps file looks cut-off and
the a_modified.eps looks fine. Rotating the figures does not change
the result.

Regards,

Volker
Re: Religious Wars [message #78062 is a reply to message #78061] Tue, 25 October 2011 07:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> When I open the files in Illustrator (on my Mac), the modified
> (landscape) version looks fine; the original (portrait) version
> is offset on the drawing area and incomplete.
>
> This indicates to me that the problem is with the orig EPS file,
> not with the viewer.

Ok, ok. I think the problem really is that *all* encapsulated
PostScript files need to be in Portrait mode. I've modified
all my PostScript programs (i.e., PS_Start, PSConfig, etc)
this morning to enforce this restriction. They should be
checked in and available within the hour. I'm just doing
the final quality checks now.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Religious Wars [message #78064 is a reply to message #78062] Tue, 25 October 2011 06:46 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.290f8f9725c724d398988b@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:

> The issue concerns encapsulated PostScript files. Here
> are two encapsulated PostScript files:
>
> http://www.idlcoyote.com/misc/a_orig.eps
> http://www.idlcoyote.com/misc/a_modified.eps

When I open the files in Illustrator (on my Mac), the modified
(landscape) version looks fine; the original (portrait) version
is offset on the drawing area and incomplete.

This indicates to me that the problem is with the orig EPS file,
not with the viewer.

Ken Bowman
Re: Religious Wars [message #78070 is a reply to message #78064] Tue, 25 October 2011 01:22 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 25 oct, 01:19, Manodeep Sinha <manod...@gmail.com> wrote:
> On Oct 24, 5:29 pm, Paul van Delst <paul.vande...@noaa.gov> wrote:
>
>
>
>
>
>> David Fanning wrote:
>>> Folks,
>
>>> I am not trying to start a religious war here, but I
>>> have some reason to believe the software Mac owners
>>> use to view PostScript files is screwy. :-)
>
>>> Or maybe it's Windows user's software, I don't know.
>>> I'm just trying to get to the bottom of a perplexing
>>> problem.
>
>> Probably windows.... (see below)
>
>>> The issue concerns encapsulated PostScript files. Here
>>> are two encapsulated PostScript files:
>
>>>   http://www.idlcoyote.com/misc/a_orig.eps
>>>   http://www.idlcoyote.com/misc/a_modified.eps
>
>>> If I open these files on my Windows machine, using the
>>> latest version of GSView (a GUI to GhostScript), then
>>> the a_orig.eps file looks perfect as long as I modify the
>>> GSView view to landscape orientation. If I view the
>>> a_modified.eps file, the output looks cut off at the far
>>> end in both portrait and landscape orientations.
>
>> On my linux box (RHE5), the file a_orig.eps is all screwy (no matter what orientation I choose in kghostview), and the
>> file a_modified.eps looks just fine.
>
> Same results on my linux box (RHE5 as well - so no big surprise here).
> gv does not display a_orig.eps properly (regardless of orientation);
> however, if I toggle the BBox button and select an A4 page-size, then
> I can see the plot. Running eps2eps on a_orig.eps also worked -- only
> the orientation needs to be changed in this case and not the BBox
> setting. a_modified.eps works fine with default gv settings.
>
> Cheers,
> Manodeep
>
>
>
>
>
>>> Oddly enough, Mac users find these results, too, but
>>> for the opposite files!!!
>
>> So, if I read correctly, my linux results agrees with the mac ones.
>
>> Gotta luv them anecdotal data points... :o)
>
>> cheers,
>
>> paulv
>
>>> If I put these documents in, say, Google Docs, then
>>> Google appears to agree with the Windows outlook
>>> on things. Of course, if I put them in Windows documents
>>> (Word, Framemaker, etc.) they agree with the Windows
>>> outlook, too. In fact, the only thing that *doesn't*
>>> agree with the Windows outlook, that I have been able
>>> to find in my experimenting, are Macintosh applications.
>
>>> So, here is my question. Is this a religious war? Should
>>> these eggs be broken on the big end or the little end?
>
>>> Any help greatly appreciated!
>
>>> Cheers,
>
>>> David- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

If you look at both PS source files, you can find that the 'orig' file
contains a "portrait" plot (BoundingBox 0 0 437 712) within a
"landscape" page (PageOrientation:Landscape, PageBoundingBox 180 75
437 712) on which some translation/rotation of the plot (180 rotate
-612 -792 translate) has been done, while the 'modified' file contains
a "landscape" plot (BoundingBox 0 0 712 437) within a "portrait" page
(PageOrientation:Portrait, PageBoundingBox 0 0 712 437) [note, here,
the amazing contradiction: "portrait" and X > Y !) without any further
operation.
In addition IDL, in creating these files, has added the somewhat
cryptic statements
'orig': $IDL_DICT begin 0 752 translate 0.0283465 dup scale 270
rotate MITERLIMIT
'modified': $IDL_DICT begin 0.0283465 dup scale MITERLIMIT
What a mess !
I love those "standard file formats" like PostScript...
alx.
Re: Religious Wars [message #78074 is a reply to message #78070] Mon, 24 October 2011 16:19 Go to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Oct 24, 5:29 pm, Paul van Delst <paul.vande...@noaa.gov> wrote:
> David Fanning wrote:
>> Folks,
>
>> I am not trying to start a religious war here, but I
>> have some reason to believe the software Mac owners
>> use to view PostScript files is screwy. :-)
>
>> Or maybe it's Windows user's software, I don't know.
>> I'm just trying to get to the bottom of a perplexing
>> problem.
>
> Probably windows.... (see below)
>
>> The issue concerns encapsulated PostScript files. Here
>> are two encapsulated PostScript files:
>
>>   http://www.idlcoyote.com/misc/a_orig.eps
>>   http://www.idlcoyote.com/misc/a_modified.eps
>
>> If I open these files on my Windows machine, using the
>> latest version of GSView (a GUI to GhostScript), then
>> the a_orig.eps file looks perfect as long as I modify the
>> GSView view to landscape orientation. If I view the
>> a_modified.eps file, the output looks cut off at the far
>> end in both portrait and landscape orientations.
>
> On my linux box (RHE5), the file a_orig.eps is all screwy (no matter what orientation I choose in kghostview), and the
> file a_modified.eps looks just fine.



Same results on my linux box (RHE5 as well - so no big surprise here).
gv does not display a_orig.eps properly (regardless of orientation);
however, if I toggle the BBox button and select an A4 page-size, then
I can see the plot. Running eps2eps on a_orig.eps also worked -- only
the orientation needs to be changed in this case and not the BBox
setting. a_modified.eps works fine with default gv settings.


Cheers,
Manodeep

>
>> Oddly enough, Mac users find these results, too, but
>> for the opposite files!!!
>
> So, if I read correctly, my linux results agrees with the mac ones.
>
> Gotta luv them anecdotal data points... :o)
>
> cheers,
>
> paulv
>
>
>
>
>
>
>
>> If I put these documents in, say, Google Docs, then
>> Google appears to agree with the Windows outlook
>> on things. Of course, if I put them in Windows documents
>> (Word, Framemaker, etc.) they agree with the Windows
>> outlook, too. In fact, the only thing that *doesn't*
>> agree with the Windows outlook, that I have been able
>> to find in my experimenting, are Macintosh applications.
>
>> So, here is my question. Is this a religious war? Should
>> these eggs be broken on the big end or the little end?
>
>> Any help greatly appreciated!
>
>> Cheers,
>
>> David
Re: Religious Wars [message #78075 is a reply to message #78074] Mon, 24 October 2011 16:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> So, if I read correctly, my linux results agrees with the mac ones.
>
> Gotta luv them anecdotal data points... :o)

Tell me about it. :-(

Alright. But what do you suppose it all means? Clearly
I have to make encapsulated PostScript files differently
depending upon which machine you want to *view* them on.
How in heaven's name am I going to be able to discover that!

Oh, fudge. I'm beginning to become sympathetic to having
no landscape PostScript output in the function graphics system.
I see now why they might have chosen that option.

Sigh... This is starting to look like a lot of work. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Religious Wars [message #78076 is a reply to message #78075] Mon, 24 October 2011 15:29 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Folks,
>
> I am not trying to start a religious war here, but I
> have some reason to believe the software Mac owners
> use to view PostScript files is screwy. :-)
>
> Or maybe it's Windows user's software, I don't know.
> I'm just trying to get to the bottom of a perplexing
> problem.

Probably windows.... (see below)

> The issue concerns encapsulated PostScript files. Here
> are two encapsulated PostScript files:
>
> http://www.idlcoyote.com/misc/a_orig.eps
> http://www.idlcoyote.com/misc/a_modified.eps
>
> If I open these files on my Windows machine, using the
> latest version of GSView (a GUI to GhostScript), then
> the a_orig.eps file looks perfect as long as I modify the
> GSView view to landscape orientation. If I view the
> a_modified.eps file, the output looks cut off at the far
> end in both portrait and landscape orientations.

On my linux box (RHE5), the file a_orig.eps is all screwy (no matter what orientation I choose in kghostview), and the
file a_modified.eps looks just fine.

> Oddly enough, Mac users find these results, too, but
> for the opposite files!!!

So, if I read correctly, my linux results agrees with the mac ones.

Gotta luv them anecdotal data points... :o)

cheers,

paulv


> If I put these documents in, say, Google Docs, then
> Google appears to agree with the Windows outlook
> on things. Of course, if I put them in Windows documents
> (Word, Framemaker, etc.) they agree with the Windows
> outlook, too. In fact, the only thing that *doesn't*
> agree with the Windows outlook, that I have been able
> to find in my experimenting, are Macintosh applications.
>
> So, here is my question. Is this a religious war? Should
> these eggs be broken on the big end or the little end?
>
> Any help greatly appreciated!
>
> Cheers,
>
> David
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Fourier back to real space
Next Topic: Re: Add a new variable to netCDF file?

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

Current Time: Wed Oct 08 11:40:39 PDT 2025

Total time taken to generate the page: 0.00814 seconds