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

Home » Public Forums » archive » problems with Z-Graphics-Buffer (?)
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
problems with Z-Graphics-Buffer (?) [message #15735] Thu, 10 June 1999 00:00 Go to next message
Harald von der Osten- is currently offline  Harald von der Osten-
Messages: 15
Registered: February 1999
Junior Member
Hallo,


to store an image on the disc, I wrote:


set_plot, �Z� & device, set_resolution=[2400,1800]
vdo = tvrd()
set_plot, �X� & window, 2 , xsize = 2400, ysize = 1800 & tv, vdo
......
d=tvrd(0,0,!d.x_vsize, !d.y_vsize, true=1)
tiff_write,�topo.tif�, reverse(d,3),1
wdelete, 2


The picture is - and should be - a black-white one, but the background
in the TIFF-file is coloured (on the screen: white because of (tvlct,
255,255,255, !p.background)). Why??

And: The resolution of the text (axis, title) is a very poor one. I
thought if I set the resolution to [2400,1800] the picture and the text
would be of excellent shape. The picture is, not the text. Why?? How
could I manage this?

Thank you very much for any hint

Harald
Re: problems with Z-Graphics-Buffer (?) [message #15791 is a reply to message #15735] Mon, 14 June 1999 00:00 Go to previous messageGo to next message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Harald von der Osten-Woldenburg wrote:
> But this is not so important as the bad or worse resolution of the fonts.
> They are looking as if an 90 years old man has written the numbers and
> letters with his trembling hand...

Check out the link 'Making Viewgraphs' at

http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
Re: problems with Z-Graphics-Buffer (?) [message #15793 is a reply to message #15735] Mon, 14 June 1999 00:00 Go to previous messageGo to next message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Harald von der Osten-Woldenburg wrote:
>
> "R.Bauer" wrote:
>
>> I am missing something like:
>>
>> tvlct,red,green,blue,/get
>> write_tif,file,image,red=red,blue=blue,green=green
>>
>> Hope this helps a bit.
>>
>> R.Bauer
>
> Thank you for your answer. Unfortunately ... this doesn't change anything
> :-((
>
> But this is not so important as the bad or worse resolution of the fonts.
> They are looking as if an 90 years old man has written the numbers and
> letters with his trembling hand...
>
> Harald vdO


that's why I usually save the IDL output as postscript file and then
take a screen-snapshot (e.g. with xv) to create a tiff, gif or whatever
file.

Martin.

--

|||||||||||||||\\\\\\\\\\\\\-------------------///////////// //|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/
Re: problems with Z-Graphics-Buffer (?) [message #15805 is a reply to message #15735] Fri, 11 June 1999 00:00 Go to previous messageGo to next message
Harald von der Osten- is currently offline  Harald von der Osten-
Messages: 15
Registered: February 1999
Junior Member
"R.Bauer" wrote:

> I am missing something like:
>
> tvlct,red,green,blue,/get
> write_tif,file,image,red=red,blue=blue,green=green
>
> Hope this helps a bit.
>
> R.Bauer

Thank you for your answer. Unfortunately ... this doesn't change anything
:-((

But this is not so important as the bad or worse resolution of the fonts.
They are looking as if an 90 years old man has written the numbers and
letters with his trembling hand...


Harald vdO
Re: problems with Z-Graphics-Buffer (?) [message #15809 is a reply to message #15735] Fri, 11 June 1999 00:00 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Harald von der Osten-Woldenburg wrote:

> Hallo,
>
> to store an image on the disc, I wrote:
>
> set_plot, �Z� & device, set_resolution=[2400,1800]
> vdo = tvrd()
> set_plot, �X� & window, 2 , xsize = 2400, ysize = 1800 & tv, vdo
> ......
> d=tvrd(0,0,!d.x_vsize, !d.y_vsize, true=1)
> tiff_write,�topo.tif�, reverse(d,3),1
> wdelete, 2
>
> The picture is - and should be - a black-white one, but the background
> in the TIFF-file is coloured (on the screen: white because of (tvlct,
> 255,255,255, !p.background)). Why??
>
> And: The resolution of the text (axis, title) is a very poor one. I
> thought if I set the resolution to [2400,1800] the picture and the text
> would be of excellent shape. The picture is, not the text. Why?? How
> could I manage this?
>
> Thank you very much for any hint
>
> Harald

I am missing something like:

tvlct,red,green,blue,/get
write_tif,file,image,red=red,blue=blue,green=green

Hope this helps a bit.

R.Bauer
Re: problems with Z-Graphics-Buffer (?) [message #15859 is a reply to message #15735] Tue, 15 June 1999 00:00 Go to previous message
Harald von der Osten- is currently offline  Harald von der Osten-
Messages: 15
Registered: February 1999
Junior Member
Martin Schultz wrote:

>> But this is not so important as the bad or worse resolution of the fonts.
>> They are looking as if an 90 years old man has written the numbers and
>> letters with his trembling hand...
>>
>> Harald vdO
>
> that's why I usually save the IDL output as postscript file and then
> take a screen-snapshot (e.g. with xv) to create a tiff, gif or whatever
> file.
>
> Martin.
>

yes, but ... if you are presenting your data in 3D and it seems that PS-fonts can
not be rotated, you have no chance...

Harald
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Printer Stops - PostScript Error?
Next Topic: arbitrary rotation of 3-d arrays

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

Current Time: Wed Oct 08 11:35:53 PDT 2025

Total time taken to generate the page: 0.00604 seconds