Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using ChartStyle

11 views
Skip to first unread message

Robert Rosenbaum

unread,
Sep 2, 2010, 2:32:09 AM9/2/10
to
I'm plotting a histogram and I'd like for the bars to be gray with no
edges.

I tried several combinations:
ChartStyle -> {Gray, EdgeForm[None]}
ChartStyle -> {EdgeForm[None], Gray}
ChartStyle -> {{EdgeForm[None]}, {Gray}}, etc
but in each case, only the first directive is implemented (e.g., the
bars are gray with edges for the first option).

Any idea how to get both directives to work?

Note: There are hundreds of bars, so listing the option for each bar
separately would be a hassle. I'd need to use Table I guess.


Best,
Robert

Helen Read

unread,
Sep 3, 2010, 6:07:35 AM9/3/10
to
On 9/2/2010 2:32 AM, Robert Rosenbaum wrote:
> I'm plotting a histogram and I'd like for the bars to be gray with no
> edges.
>
> I tried several combinations:
> ChartStyle -> {Gray, EdgeForm[None]}
> ChartStyle -> {EdgeForm[None], Gray}
> ChartStyle -> {{EdgeForm[None]}, {Gray}}, etc
> but in each case, only the first directive is implemented (e.g., the
> bars are gray with edges for the first option).

Actually, I get bars cyclically alternating, one Gray, one that is the
default color with EdgeForm[None], etc., consistent with what the
Documentation says.

> Any idea how to get both directives to work?

Use Directive if you want to apply all the styles to all the bars.

ChartStyle -> Directive[Gray, EdgeForm[None]]

BTW, it is helpful to include an example that people can copy/paste into
a notebook and evaluate, so that they can see what you are talking about
without having to make up their own example.

--
Helen Read
University of Vermont

0 new messages