Skip to content

Commit 25e77f5

Browse files
committed
added comments
1 parent 57d4eb9 commit 25e77f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/gallery/histograms/histogram.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010

1111
fig.histogram(
1212
table="@v3206_06.txt",
13+
# specify the "region" of interest [xmin, xmax, ymin, ymax]
1314
region=[-6000, 0, 0, 30],
15+
# generate evenly spaced bins by increments of 250
1416
series=250,
17+
# use red3 as color fill for the bars
1518
fill="red3",
19+
# define the frame, add title and set background color to
20+
# lightgray, add annotations for x and y axis
1621
frame=[
1722
'WSne+t"Histograms"+glightgray',
1823
'x+l"Topography (m)"',
1924
'y+l"Frequency"+u" %"',
2025
],
26+
# use a pen size of 1p to draw the outlines
2127
pen="1p",
28+
# choose histogram type 1 = frequency_percent
2229
type=1,
2330
)
2431

0 commit comments

Comments
 (0)