Re: Coloring Histograms
- To: mathgroup at smc.vnet.net
- Subject: [mg93700] Re: Coloring Histograms
- From: Raffy <raffy at mac.com>
- Date: Sat, 22 Nov 2008 06:12:37 -0500 (EST)
- References: <gg62kp$52t$1@smc.vnet.net>
On Nov 21, 2:30 am, "Richard Trilling" <trill... at orange.fr> wrote: > I'm using the Histogram package, calling it by: Needs["Histograms`"] > > Each histogram keeps coming out in pale blue. I'd like to be able to chan= ge > the color of an individual histogram to something else. > > This way when I combine two histograms on the same graph using "Show" the= y > will come out in different colors. > > To plot a single histogram I use the syntax: > Histogram[completeness, FrequencyData -> True] > > I haven't found a plot option that will acomplish this. Any ideas would b= e > appreciated. > > Richard replacePrims[Graphics[pr_, args___], rules___] := Graphics[pr /. {rules}, args]; { replacePrims[Histogram[{1,2,3,4}], _RGBColor->Red] replacePrims[Histogram[{1,2,3,2}], _RGBColor->Blue] }//Show