Message Boards Message Boards

GROUPS:

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

Posted 1 year ago
1073 Views
|
2 Replies
|
1 Total Likes
|

2 Replies

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

Wow, thank you!

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