Fix figure labels in grdhisteq tutorial
@@ -47,7 +47,7 @@ with fig.subplot(
projection="X?",
region=[500, 3600, 0, 20],
series=[500, 3600, 100],
- frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
+ frame=["wnSE", "xaf+lElevation (m)", "yaf+lPercent frequency"],
cmap=True,
histtype=1,
pen="1p,black",
@@ -107,12 +107,13 @@ with fig.subplot(
fig.histogram(
data=linear_dist,
projection="X?",
- region=[0, divisions, 0, 40],
+ region=[-1, divisions, 0, 40],
series=[0, divisions, 1],
- frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
+ frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
cmap=True,
histtype=1,
pen="1p,black",
+ center=True,
)
fig.colorbar(position="JMR+o1.5c/0c+w3c/0.3c", frame=True)
fig.show()
@@ -154,7 +155,7 @@ with fig.subplot(
projection="X?",
region=[-4.5, 4.5, 0, 20],
series=[-4.5, 4.5, 0.2],
- frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
+ frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
cmap=True,
histtype=1,
pen="1p,black",
@@ -210,12 +211,13 @@ with fig.subplot(
fig.histogram(
data=quadratic_dist,
projection="X?",
- region=[0, divisions, 0, 40],
+ region=[-1, divisions, 0, 40],
series=[0, divisions, 1],
- frame=["wnSE", "xaf+lElevation (m)", "yaf+lCounts"],
+ frame=["wnSE", "xaf+lRelative elevation", "yaf+lPercent frequency"],
cmap=True,
histtype=1,
pen="1p,black",
+ center=True,
)
fig.colorbar(position="JMR+o1.5c/0c+w3c/0.3c", frame=True)
fig.show()
