Re: Saving XYOUTS [message #67010] |
Thu, 25 June 2009 17:06 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vikram writes:
> Over the past couple of weeks, I am realizing how
> powerful IDL really is, it is quite an amazing piece of software...
Yes, this is quite a common feeling when you are
on the rising trajectory of your career. Later on,
MatLab starts to look better and better. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Saving XYOUTS [message #67011 is a reply to message #67010] |
Thu, 25 June 2009 17:00  |
vikramivatury
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
On Jun 25, 7:55 pm, David Fanning <n...@dfanning.com> wrote:
> Vikram writes:
>> I am sorry for all the questions, but you I am new to IDL and guys are
>> giving awesome answers! I really appreciate it!
>
>> Is there any way to save a plot or image with text written with XYOUTS
>> on it, without using TVRD()?
>
> OK, I thought about this the whole time I was taking my
> shower and I've come up with what I think is a brilliant
> solution.
>
> PS_Start, File='example_wo_tvrd.ps'
> TVImage, LoadData(7), /KEEP
> XYOUTS, 0.5, 0.5, /NORMAL, 'This is some text', FONT=0, CHARSIZE=2.0
> PS_END, /TIFF
>
> You will find the file "example_wo_tvrd.tif" in your
> current directory. It will have text written on the
> image!
>
> Cheers,
>
> David
>
> P.S. Of course, I *assume* you have ImageMagick installed
> properly.
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
haha yes, a lot of conditions.
Dr. Fanning, you are awesome and that is brilliant! Appreciate the
time and thought. Over the past couple of weeks, I am realizing how
powerful IDL really is, it is quite an amazing piece of software...
-Vikram
|
|
|
Re: Saving XYOUTS [message #67013 is a reply to message #67011] |
Thu, 25 June 2009 16:55  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vikram writes:
> I am sorry for all the questions, but you I am new to IDL and guys are
> giving awesome answers! I really appreciate it!
>
> Is there any way to save a plot or image with text written with XYOUTS
> on it, without using TVRD()?
OK, I thought about this the whole time I was taking my
shower and I've come up with what I think is a brilliant
solution.
PS_Start, File='example_wo_tvrd.ps'
TVImage, LoadData(7), /KEEP
XYOUTS, 0.5, 0.5, /NORMAL, 'This is some text', FONT=0, CHARSIZE=2.0
PS_END, /TIFF
You will find the file "example_wo_tvrd.tif" in your
current directory. It will have text written on the
image!
Cheers,
David
P.S. Of course, I *assume* you have ImageMagick installed
properly.
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Saving XYOUTS [message #67014 is a reply to message #67013] |
Thu, 25 June 2009 16:25  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vikram writes:
> I have an image, where I have written text using XYOUTS. When I save
> the image as a TIFF, the XYOUTS do not show in the image. Anyway I can
> make them show when I save the image?
OK, and you have religious reasons for not wanting to
use TVRD, right? Humm.
You remind me of of my youngest son. He sets up all these
conditions that make a job almost impossible to do and then
he seems surprised when he can't get the job done.
Let me ask you this. What connection do you see between
pixels that have changed color on your display and the
image variable you are writing to the TIFF file?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Saving XYOUTS [message #67015 is a reply to message #67014] |
Thu, 25 June 2009 16:19  |
vikramivatury
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
On Jun 25, 6:43 pm, David Fanning <n...@dfanning.com> wrote:
> Vikram writes:
>> I am sorry for all the questions, but you I am new to IDL and guys are
>> giving awesome answers! I really appreciate it!
>
>> Is there any way to save a plot or image with text written with XYOUTS
>> on it, without using TVRD()?
>
> Maybe you should explain what you it is you really
> want here. You wrote something on your image, and
> now you wish you hadn't, or what? Maybe something
> critical of the boss?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
haha nothing like that :).
I have an image, where I have written text using XYOUTS. When I save
the image as a TIFF, the XYOUTS do not show in the image. Anyway I can
make them show when I save the image?
-Vikram
|
|
|
Re: Saving XYOUTS [message #67018 is a reply to message #67015] |
Thu, 25 June 2009 15:43  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vikram writes:
> I am sorry for all the questions, but you I am new to IDL and guys are
> giving awesome answers! I really appreciate it!
>
> Is there any way to save a plot or image with text written with XYOUTS
> on it, without using TVRD()?
Maybe you should explain what you it is you really
want here. You wrote something on your image, and
now you wish you hadn't, or what? Maybe something
critical of the boss?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|