Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2330

Histogram omits data points

From Yen Lee Loh <yenleeloh1@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Histogram omits data points
Date 2011-05-13 10:27 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iqj11v$rde$1@smc.vnet.net> (permalink)

Show all headers | View raw


Dear all,

With Mathematica version "8.0 for Linux x86 (64-bit) (February 23, 2011)",
the following command gives only three bars at horizontal positions -3, -1,
and 1; the bar at 3 is missing:

    Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.05}, PlotRange -> All]

The following still gives the same problem.

    Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.05}, PlotRange -> {{-4, 4},
All}]

However, the following command, with a larger bin spacing, is ok:

    Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.1}, PlotRange -> All]

Just a warning for unwary users.  -Yen Lee

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Histogram omits data points Yen Lee Loh <yenleeloh1@gmail.com> - 2011-05-13 10:27 +0000

csiph-web