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

st: lpattern() option doesn't work in -twoway bar-?

From   Eva Poen <>
To   Statalist <>
Subject   st: lpattern() option doesn't work in -twoway bar-?
Date   Wed, 27 May 2009 15:35:01 +0100

Dear all,

yesterday I stumbled across the following on an up-to-date Stata 10.1:

sysuse auto, clear
collapse price, by(rep78)
twoway (bar price rep78 if rep78 < 3, barwidth(0.8)) ///
  (bar price rep78 if rep78 >= 3, lpattern(dash) lcolor(black) ///
  fcolor(white) lwidth(medthick) barwidth(0.8))

On my machine, only the legend for the white bars has a dashed
outline, not the actual bars on the graph itself. It's the same for
any other pattern.

On the other hand,

graph bar (asis) price, over(rep78) bargap(0.2) bar(1, fcolor(white) ///
  lcolor(black) lwidth(medthick) lpattern(dash))

produces bars with a dashed outline.
Have I missed something very basic here?

*   For searches and help try:

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