Statalist


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

RE: st: RE: hist with addplot option


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: hist with addplot option
Date   Tue, 25 Nov 2008 22:04:12 -0000

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 
[email protected] 

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/



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