~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to examples/graphstyles/histogram.txt

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2011-05-20 00:13:52 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20110520001352-odcuqpdezuusbbw1
Tags: upstream-0.11.1
ImportĀ upstreamĀ versionĀ 0.11.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Creating a histogram
 
2
 
 
3
Styles can alter the way data is presented in arbitrary ways. Here the
 
4
histogram style is used to generate a histogram. ... By default the histogram
 
5
draws a box for each histogram value, but you can set the `step` parameter of
 
6
the histogram style to use steps instead.
 
7
 
 
8
! In this basic use-case the histogram is calculated out of equal-spaced
 
9
x-values automatically. You can also use errorbar like data in one graph
 
10
dimension to generate histograms with different widths of the histogram boxes.
 
11
 
 
12
! Note that a histogram is very different from a bar graph in that it uses
 
13
regular axes (like the default linear axes in this example) in both graph
 
14
dimensions. Instead, bar graphs use a discrete axis.