diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-07-21 18:39:02 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-07-21 18:39:02 (GMT) |
commit | 6b6320c1fcc147938ef36f0f4fb88547a60c9267 (patch) | |
tree | b2e35306828cecda3102cbca57ed878e32fe8c9a /tkblt | |
parent | 0b048f1566f10b1d4e6213f753256039f5c98a23 (diff) | |
download | blt-6b6320c1fcc147938ef36f0f4fb88547a60c9267.zip blt-6b6320c1fcc147938ef36f0f4fb88547a60c9267.tar.gz blt-6b6320c1fcc147938ef36f0f4fb88547a60c9267.tar.bz2 |
prism histogram
Diffstat (limited to 'tkblt')
-rw-r--r-- | tkblt/generic/tkbltGrElemBar.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tkblt/generic/tkbltGrElemBar.C b/tkblt/generic/tkbltGrElemBar.C index 6698760..e31f9ad 100644 --- a/tkblt/generic/tkbltGrElemBar.C +++ b/tkblt/generic/tkbltGrElemBar.C @@ -499,7 +499,9 @@ void BarElement::extents(Region2d *regPtr) int nPoints = NUMBEROFPOINTS(ops); - double middle = 0.5; + double barWidth = (ops->barWidth > 0.0) ? ops->barWidth : gops->barWidth; + double middle = barWidth/2.; + // double middle = 0.5; regPtr->left = ops->coords.x->min() - middle; regPtr->right = ops->coords.x->max() + middle; |