Statalist


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

st: Transparent graph


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Transparent graph
Date   Mon, 29 Sep 2008 13:28:49 -0400

Dear All,

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'
??

Thank you,
   Sergiy Radyakin
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index