Re: characters in ps [message #21401] |
Wed, 23 August 2000 22:54 |
majewski
Messages: 15 Registered: March 2000
|
Junior Member |
|
|
On Wed, 23 Aug 2000 16:43:57 +0200, "r.bauer" <r.bauer@fz-juelich.de> wrote:
> I am sorry, this don't work.
>
> The "�" is missing in both.
yeah i just realised (after restarting IDL) that in one of my previous attempts i had set
isolatin1 [and thats why my output had worked].
thankyou
-------------------------
Leon Majewski
Remote Sensing & Satellite Research Group
Curtin University of Technology, Perth, Australia
email: majewski@ses.curtin.edu.au
|
|
|
Re: characters in ps [message #21410 is a reply to message #21401] |
Wed, 23 August 2000 00:00  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Otto Jusko wrote:
>
> It is even easier than that:
>
> If you want to display an "�", "�", "�", or "�", which are German Umlaute, than you may just
> enable the /ISOLATIN switch of your PS-device and you can print strings including them, like
> "Hofbr�uhaus".
>
> have fun !
I am sorry, this don't work.
The "�" is missing in both.
IDL Help:
ISOLATIN1
(PS)
Set this keyword to use Adobe ISO Latin 1 font encoding with any font
that supports such coding. Use of this keyword allows access to many
commonly-used foreign characters.
Reimar
pro test2
SET_PLOT, 'PS'
DEVICE, SET_FONT = "Times-Roman"
x=findgen(100)
y=sin(x)
DEVICE, FILE='test_out.eps' ,$
/ENCAPSUL, /color,/isolatin1
!P.FONT = 0
plot, x, y, xtitle = 'Funny >�< Character doesn''t work'
xyouts,0.5,0.5,'Hofbr�uhaus',/norm
DEVICE, /CLOSE
end
|
|
|
Re: characters in ps [message #21413 is a reply to message #21410] |
Wed, 23 August 2000 00:00  |
Dr. Otto Jusko
Messages: 5 Registered: June 2000
|
Junior Member |
|
|
It is even easier than that:
If you want to display an "�", "�", "�", or "�", which are German Umlaute, than you may just
enable the /ISOLATIN switch of your PS-device and you can print strings including them, like
"Hofbr�uhaus".
have fun !
|
|
|
Re: characters in ps [message #21416 is a reply to message #21410] |
Tue, 22 August 2000 20:18  |
majewski
Messages: 15 Registered: March 2000
|
Junior Member |
|
|
well only an hour after posting i find it.
I had been trying things such as STRING("228B) which is the way with hershey fonts.
A_dd = STRING(228B) ; --> �
SET_PLOT, 'PS'
!P.FONT = 0
DEVICE, /BKMAN, /LIGHT
DEVICE, FILE='test_out.eps'
DEVICE, /ENCAPSUL, /color
LoadCT, 1
plot, DATA_x, DATA_y, xtitle = 'Depth (m)', ytitle = string('Brunt V'+A_dd+'s'+A_dd +
'l'+A_dd+' Frequency'), color = 0
oplot, DATA_x, DATA_z1, color = 50, psym = 5
oplot, DATA_x, DATA_z2, color = 100, psym = -4
DEVICE, /CLOSE
-------------------------
Leon Majewski
Remote Sensing & Satellite Research Group
Curtin University of Technology, Perth, Australia
email: majewski@ses.curtin.edu.au
|
|
|