File: histogram.txt

package info (click to toggle)
pyx3 0.16-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,880 kB
  • sloc: python: 22,065; ansic: 130; makefile: 93; sh: 8
file content (14 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Creating a histogram

Styles can alter the way data is presented in arbitrary ways. Here the
histogram style is used to generate a histogram. ... By default the histogram
draws a box for each histogram value, but you can set the `step` parameter of
the histogram style to use steps instead.

! In this basic use-case the histogram is calculated out of equal-spaced
x-values automatically. You can also use errorbar like data in one graph
dimension to generate histograms with different widths of the histogram boxes.

! Note that a histogram is very different from a bar graph in that it uses
regular axes (like the default linear axes in this example) in both graph
dimensions. Instead, bar graphs use a discrete axis.