MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: PlotRange with Histogram Log height

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131965] Re: PlotRange with Histogram Log height
  • From: Weiss Jeffrey <jbwjbwjbw at gmail.com>
  • Date: Wed, 6 Nov 2013 00:38:44 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20131105041819.81A3C6A1C@smc.vnet.net> <CAEtRDSd62R4uk7us4BPv5P0vXXVEnx=nwnhT9XpH5COLqHo_fA@mail.gmail.com>

Thanks. That did the trick.

On Tue, Nov 5, 2013, at 8:57 AM, Bob Hanlon <hanlonr357 at gmail.com> wrote:

> You must take the Log of the vertical axis range values
>
> data = RandomVariate[
>    TruncatedDistribution[{-2, 2},
>     NormalDistribution[0, 0.5]], 1000];
>
> Histogram[data, 10, {"Log", "PDF"},
>  PlotRange -> {{-2, 2}, Automatic},
>  Frame -> True,
>  PlotRangeClipping -> True]
>
> Histogram[data, 10, {"Log", "PDF"},
>  PlotRange -> {{-2, 2}, Log /@ {0.01, 1.0}},
>  Frame -> True,
>  PlotRangeClipping -> True]
>
> However, since Log is Listable, this can be shortened slightly to
>
> Attributes[Log]
>
> {Listable, NumericFunction, Protected}
>
> Histogram[data, 10, {"Log", "PDF"},
>  PlotRange -> {{-2, 2}, Log at {0.01, 1.0}},
>  Frame -> True,
>  PlotRangeClipping -> True]
>
>
> Bob Hanlon
>
>
>
> On Mon, Nov 4, 2013 at 11:18 PM, Jeff <jbwjbwjbw at gmail.com> wrote:
> I am trying to draw a histogram with log heights with a specified PlotRange. This command works fine:
>
> Histogram[data, 10, {"Log", "PDF"},
>  PlotRange -> {{-2, 2}, Automatic}, Frame -> True,
>  PlotRangeClipping -> True]
>
> But what I need is the ability to control the range of the vertical axes. When I change the "Automatic" to something specific I get a blank graph. For example, this fails
>
> Histogram[data, 10, {"Log", "PDF"},
>  PlotRange -> {{-2, 2}, {0.01, 1.0}}, Frame -> True,
>  PlotRangeClipping -> True]
>
> I am using Mathematica 9.0.1.0 on OSX 10.8.5. Any help would be appreciated.
>
>





  • Prev by Date: Re: ListPlot - assigning a list of colors to a set of points
  • Next by Date: Re: ListPlot - assigning a list of colors to a set of
  • Previous by thread: Re: PlotRange with Histogram Log height
  • Next by thread: Biokmod 5.3 for Mathematica 9 available for free download