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

Home » Public Forums » archive » Re: transparent symbols
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: transparent symbols [message #74934] Tue, 08 February 2011 10:43 Go to next message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Feb 8, 10:10 am, bing999 <thibaultga...@gmail.com> wrote:
> On Feb 8, 4:48 pm, bing999 <thibaultga...@gmail.com> wrote:
>
>> Hi,
>
>> I want to overplot symbols (filled circles) on a previously drawn
>> figure. To make it easier to read, I would like to make the symbols
>> transparent.
>> Is there a way to do that?
>
>> Thanks a lot!
>
>> cheers
>
> And please note that I would like to save the plot in PostScript... :)

While the new IDL graphics system has the capability to produce
transparent symbols etc, you still can't save the plot directly into a
postscript format (transparent regions will become opaque). You will
have to first save the plot in a png format and then convert to ps/
eps.

Overplotting on a previously-drawn image is a whole different issue.
Either ask the "supplier" (as Reimar suggested) or extract the data
from the plot using something like Dexter (http://dc.zah.uni-
heidelberg.de/dexter/ui/ui/custom/).
Re: transparent symbols [message #74935 is a reply to message #74934] Tue, 08 February 2011 09:18 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 2/8/11 8:48 AM, bing999 wrote:
> Hi,
>
> I want to overplot symbols (filled circles) on a previously drawn
> figure. To make it easier to read, I would like to make the symbols
> transparent.
> Is there a way to do that?

The new graphics, iTools, and object graphics systems can do this. What
do you mean by "previously drawn figure", i.e., how did you make the
previously drawn figure?

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
Re: transparent symbols [message #74936 is a reply to message #74935] Tue, 08 February 2011 09:05 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bing999 writes:

> I want to overplot symbols (filled circles) on a previously drawn
> figure. To make it easier to read, I would like to make the symbols
> transparent.
> Is there a way to do that?

I guess if you were willing to fool around long enough,
you could do this with a combination of Make_Transparent_Image
and cgImage. If it were me, I don't think I would bother. :-)

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: transparent symbols [message #74937 is a reply to message #74936] Tue, 08 February 2011 08:52 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 08.02.2011 16:48, schrieb bing999:
> Hi,
>
> I want to overplot symbols (filled circles) on a previously drawn
> figure. To make it easier to read, I would like to make the symbols
> transparent.
> Is there a way to do that?
>
> Thanks a lot!
>
> cheers

have you asked your supplier? 8)
Re: transparent symbols [message #74939 is a reply to message #74937] Tue, 08 February 2011 08:10 Go to previous messageGo to next message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
On Feb 8, 4:48 pm, bing999 <thibaultga...@gmail.com> wrote:
> Hi,
>
> I want to overplot symbols (filled circles) on a previously drawn
> figure. To make it easier to read, I would like to make the symbols
> transparent.
> Is there a way to do that?
>
> Thanks a lot!
>
> cheers


And please note that I would like to save the plot in PostScript... :)
Re: transparent symbols [message #74960 is a reply to message #74939] Thu, 10 February 2011 11:53 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Feb 8, 11:10 am, bing999 <thibaultga...@gmail.com> wrote:
> On Feb 8, 4:48 pm, bing999 <thibaultga...@gmail.com> wrote:
>
>> Hi,
>
>> I want to overplot symbols (filled circles) on a previously drawn
>> figure. To make it easier to read, I would like to make the symbols
>> transparent.
>> Is there a way to do that?
>
>> Thanks a lot!
>
>> cheers
>
> And please note that I would like to save the plot in PostScript... :)

What about reading the RGB pixel values in the place you need
the symbols, add 32 (or another suitable value) to the R channel
while leaving the G and B channels untouched. That will create
a red-hued semi-transparent symbol...

Ciao,
Paolo
Re: transparent symbols [message #74973 is a reply to message #74939] Thu, 10 February 2011 08:55 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Feb 8, 8:10 am, bing999 <thibaultga...@gmail.com> wrote:
> On Feb 8, 4:48 pm, bing999 <thibaultga...@gmail.com> wrote:
>
>> Hi,
>
>> I want to overplot symbols (filled circles) on a previously drawn
>> figure. To make it easier to read, I would like to make the symbols
>> transparent.
>> Is there a way to do that?
>
>> Thanks a lot!
>
>> cheers
>
> And please note that I would like to save the plot in PostScript... :)

Yes, I should add this is actually a limitation in PostScript itself,
it just can't do (semi-)transparency of vector objects. It can do
transparency of rasters, in a limited way, but that's the same as you
making the plot in PNG with an alpha channel and then converting to
PS.

I see a lot of new graphics packages advertise writing directly in
PDF, and PDF is apparently capable of handling semi-transparent
objects. I see that IDL 8.0 can output to PDF as well, now they just
need to provide support for semi-transparent objects.

Useful and/or interesting information here:
https://secure.wikimedia.org/wikipedia/en/wiki/Transparency_ %28graphic%29
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Domain Name Change and Perl Programmer Needed
Next Topic: idl or envi?

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

Current Time: Wed Oct 08 11:43:50 PDT 2025

Total time taken to generate the page: 0.00670 seconds