Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: hist with addplot option


From   David Airey <david.airey@Vanderbilt.Edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: hist with addplot option
Date   Tue, 25 Nov 2008 16:33:47 -0600

Yes, transparency, sometimes referred to as percent opacity--at least in a number of Apple OS X applications.

I need to correct myself...I got an error from copying from my email application, not from my browser application.

I confirmed to myself that my email application is inserting unwanted characters that trip up Stata.

*** from browser ***
. clear

. sysuse auto
(1978 Automobile Data)

. do "/var/folders/AJ/AJjttUSSFdSi1HiInJZyY++++TI/-Tmp-//SD00421.000000"

. twoway histogram mpg if !foreign, ///
> start(10) width(2) freq bfcolor(none) blcolor(pink)  ///
> || histogram mpg if foreign, freq start(10) width(2) barw(1.8) ///
> bfcolor(none) blcolor(blue) ///
> legend(order(1 "Domestic" 2 "Foreign") pos(2) ring(0) col(1))

.
end of do-file

*** from email client ***

. do "/var/folders/AJ/AJjttUSSFdSi1HiInJZyY++++TI/-Tmp-//SD00421.000000"

. sysuse auto
(1978 Automobile Data)

.
. twoway histogram mpg if !foreign, ///
> start(10) width(2) freq bfcolor(none) blcolor(pink)  ///
option   not allowed
r(198);



-Dave

On Nov 25, 2008, at 4:04 PM, Nick Cox wrote:

I don't understand your comment about opacity. Overlapping histograms
demand a high degree of transparency, not opacity. Setting
-bfcolor(none)- gets you most of the way there.

The code below works (again) for me.

Very experienced Stata users don't stop making lots of mistakes. They
just get faster at correcting them. Or so I'm told.

Nick
n.j.cox@durham.ac.uk

David Airey

It's too bad opacity is not a graphics option here.

BTW, and not to hijack or interweave threads, but your example is
another example of not being able to copy and paste code and have it
work. I can't imagine you missed anything like a comma or some such...

On Nov 25, 2008, at 3:17 PM, Nick Cox wrote:

sysuse auto

twoway histogram mpg if !foreign, ///
start(10) width(2) freq bfcolor(none) blcolor(pink)  ///
|| histogram mpg if foreign, freq start(10) width(2) barw(1.8) ///
bfcolor(none) blcolor(blue) ///
legend(order(1 "Domestic" 2 "Foreign") pos(2) ring(0) col(1))

*
*   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/

*
*   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