Message Boards Message Boards

0
|
2437 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[Solved] Specify Histogram bar color by bin#, not height?

Posted 3 years ago

POSTED BY: Richard Frost
2 Replies
Posted 3 years ago

Hi Richard,

You can use ChartStyle

SeedRandom[123];
Histogram[
 Table[RandomReal[{First[partitions], Last[partitions]}], 100], {partitions},
 PlotRange -> {{0, Automatic}, {0, Automatic}}, 
 Ticks -> {Round[#, 0.1] & /@ partitionCenters, Automatic}, 
 AxesStyle -> {{Black, 11}, {Black, 11}},
 AspectRatio -> 160/352, 
 ImageSize -> {352, 160},
 ChartStyle -> binHues]

enter image description here

POSTED BY: Rohit Namjoshi

Wow, thank you!

POSTED BY: Richard Frost
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract