Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Transparent graph


From   "Joseph Coveney" <[email protected]>
To   "Statalist" <[email protected]>
Subject   Re: st: Transparent graph
Date   Wed, 1 Oct 2008 01:06:06 +0900

Sergiy Radyakin wrote:

I am writing a graphing procedure (directly with Stata's undocumented
gdi commands). There is a pseudo-transparency effect as can be seen
below:

sysuse auto, clear
generate ww = weight * 2.85
twoway area price ww l, sort fi(100 100)
twoway area price ww l, sort fi(30 30)

Is it possible to achieve "true-transparency" (where the first "blue"
graph could be seen through the second "pink")?

In technical terms: does gdi shadelevel set color or the method of
drawing (SET,OR,AND,XOR)? I.e. is it equivalent to
gdi shadergb = `i' * `R'    `i' * `G'    `i' * `B'
??

--------------------------------------------------------------------------------

Adrian Mander has written something that might help you get closer to what
you're looking for.  He mentions it in this post:

http://www.stata.com/statalist/archive/2006-10/msg00018.html

Joseph Coveney


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index