Skip to content

Commit

Permalink
update plot code to set vmin value
Browse files Browse the repository at this point in the history
  • Loading branch information
gantian127 committed Jul 25, 2024
1 parent 5c47d20 commit 31b37a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/soilgrids.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"outputs": [],
"source": [
"# plot data\n",
"data.plot(figsize=(9, 5))\n",
"data.plot(figsize=(9, 5),vmin=0)\n",
"plt.title(\"Mean pH between 0 and 5 cm soil depth in Senegal\")"
]
},
Expand Down Expand Up @@ -279,7 +279,7 @@
"\n",
"# plot data\n",
"fig, ax = plt.subplots(1, 1, figsize=(9, 5))\n",
"im = ax.imshow(data_2D, extent=extent)\n",
"im = ax.imshow(data_2D, extent=extent,vmin=0)\n",
"fig.colorbar(im)\n",
"plt.xlabel(\"X\")\n",
"plt.ylabel(\"Y\")\n",
Expand Down Expand Up @@ -529,7 +529,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 31b37a7

Please sign in to comment.