Skip to content

Commit d59126a

Browse files
author
Max Jones
authored
Fix figure labels in grdhisteq tutorial (#2005)
1 parent f5b3bb6 commit d59126a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

examples/tutorials/advanced/grid_equalization.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
projection="X?",
4848
region=[500, 3600, 0, 20],
4949
series=[500, 3600, 100],
50-
frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
50+
frame=["wnSE", "xaf+lElevation (m)", "yaf+lPercent frequency"],
5151
cmap=True,
5252
histtype=1,
5353
pen="1p,black",
@@ -107,12 +107,13 @@
107107
fig.histogram(
108108
data=linear_dist,
109109
projection="X?",
110-
region=[0, divisions, 0, 40],
110+
region=[-1, divisions, 0, 40],
111111
series=[0, divisions, 1],
112-
frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
112+
frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
113113
cmap=True,
114114
histtype=1,
115115
pen="1p,black",
116+
center=True,
116117
)
117118
fig.colorbar(position="JMR+o1.5c/0c+w3c/0.3c", frame=True)
118119
fig.show()
@@ -154,7 +155,7 @@
154155
projection="X?",
155156
region=[-4.5, 4.5, 0, 20],
156157
series=[-4.5, 4.5, 0.2],
157-
frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
158+
frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
158159
cmap=True,
159160
histtype=1,
160161
pen="1p,black",
@@ -210,12 +211,13 @@
210211
fig.histogram(
211212
data=quadratic_dist,
212213
projection="X?",
213-
region=[0, divisions, 0, 40],
214+
region=[-1, divisions, 0, 40],
214215
series=[0, divisions, 1],
215-
frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
216+
frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
216217
cmap=True,
217218
histtype=1,
218219
pen="1p,black",
220+
center=True,
219221
)
220222
fig.colorbar(position="JMR+o1.5c/0c+w3c/0.3c", frame=True)
221223
fig.show()

0 commit comments

Comments
 (0)