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

Home » Public Forums » archive » unwanted totally greek postscript output with coyote IDL
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
unwanted totally greek postscript output with coyote IDL [message #89273] Tue, 12 August 2014 04:40 Go to next message
tho.siegert is currently offline  tho.siegert
Messages: 6
Registered: April 2014
Junior Member
When I updated the coyote IDL library (don't know exactly when, but when it changed from ps_start/ps_end to cgps_open/cgps_close), I recognized some strange things happening (sometimes) with the postscript output.
I don't know if its me or a bug - here are some examples of what i do, using only the coyote IDL library:

y = randomn(seed,154)*5e-8

cgps_open,'plot_w_yrange.ps'
cgplot,y,xtitle='Flux bins [ph s$\up-1$ cm$\up-2$ keV$\up-1$]', $
ytitle='Number density',color='black',thick=2,yrange=[0,50]
cgps_close

cgps_open,'plot_wo_yrange.ps'
cgplot,y,xtitle='Flux bins [ph s$\up-1$ cm$\up-2$ keV$\up-1$]', $
ytitle='Number density',color='black',thick=2
cgps_close

cgps_open,'histoplot_w_yrange.ps'
cghistoplot,y,xtitle='Flux bins [ph s$\up-1$ cm$\up-2$ keV$\up-1$]', $
ytitle='Number density',color='black',thick=2,yrange=[0,50]
cgps_close

cgps_open,'histoplot_wo_yrange.ps'
cghistoplot,y,xtitle='Flux bins [ph s$\up-1$ cm$\up-2$ keV$\up-1$]', $
ytitle='Number density',color='black',thick=2
cgps_close

What happens (for me) is the following:
first plot: normal
second plot: the x- and y-titles are in greek letters
third plot: same as 2.
fourth plot: same as 2.


I want to stay with the default style provided in the coyote library when using the cgps_open/cgps_close procedures. Though, if I try setting font = 1 in the call to cgps_open, everything is returned "normal" but rather unasthetic.

Unfortunatelly, I can not attach something here, so please verify yourself or refute me.

I appreciate any help or comments.
Cheers,
Thomas
Re: unwanted totally greek postscript output with coyote IDL [message #89274 is a reply to message #89273] Tue, 12 August 2014 06:26 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Since we don't have "y" it's tough for us to really verify.

(it's always a good idea to use some dummy data in your code so we can play along with you :-) )

But, does this topic help?
https://groups.google.com/d/topic/comp.lang.idl-pvwave/aykej i8wsLk/discussion
Re: unwanted totally greek postscript output with coyote IDL [message #89275 is a reply to message #89273] Tue, 12 August 2014 07:48 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Which version of IDL are you using?

I don't get Greek letters on any of the plots using your code.

Perhaps it is related to this: https://groups.google.com/d/topic/comp.lang.idl-pvwave/aykej i8wsLk/discussion?

IDL> help, !VERSION
** Structure !VERSION, 8 tags, length=104, data length=100:
ARCH STRING 'x86_64'
OS STRING 'darwin'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'Mac OS X'
RELEASE STRING '8.2.3'
BUILD_DATE STRING 'May 2 2013'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64
Re: unwanted totally greek postscript output with coyote IDL [message #89278 is a reply to message #89273] Wed, 13 August 2014 02:44 Go to previous messageGo to next message
tho.siegert is currently offline  tho.siegert
Messages: 6
Registered: April 2014
Junior Member
Hello Phillip,

my IDL version is:

IDL> help,!version
** Structure !VERSION, 8 tags, length=104, data length=100:
ARCH STRING 'x86_64'
OS STRING 'linux'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'linux'
RELEASE STRING '8.3'
BUILD_DATE STRING 'Nov 15 2013'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64


I also read your post in the other thread. Seems there is an IDL problem, or did I miss some other conclusion?
So shall I just wait for IDL 8.3.1?
Re: unwanted totally greek postscript output with coyote IDL [message #89279 is a reply to message #89278] Wed, 13 August 2014 08:44 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, August 13, 2014 3:44:33 AM UTC-6, tho.s...@gmail.com wrote:
> Hello Phillip,
>
>
>
> my IDL version is:
>
>
>
> IDL> help,!version
>
> ** Structure !VERSION, 8 tags, length=104, data length=100:
>
> ARCH STRING 'x86_64'
>
> OS STRING 'linux'
>
> OS_FAMILY STRING 'unix'
>
> OS_NAME STRING 'linux'
>
> RELEASE STRING '8.3'
>
> BUILD_DATE STRING 'Nov 15 2013'
>
> MEMORY_BITS INT 64
>
> FILE_OFFSET_BITS
>
> INT 64
>
>
>
>
>
> I also read your post in the other thread. Seems there is an IDL problem, or did I miss some other conclusion?
>
> So shall I just wait for IDL 8.3.1?

Hi Thomas,

I can confirm that this code works fine on IDL 8.4 (8.3.1 is now 8.4), using 64-bit Windows.

In the meantime, if you are desperate, you could either set font=1 like you suggested, or you could sprinkle in some !3 commands in front of your x/ytitle text, to force the text back to normal.

Cheers,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: updated "Using Python From IDL" ebook
Next Topic: checking if PS output file already open

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

Current Time: Wed Oct 08 09:20:45 PDT 2025

Total time taken to generate the page: 0.00524 seconds