Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Fig2_PyGMT_ecosystem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"outputs": [],
"source": [
"import pygmt\n",
"from pygmt.params import Position\n",
"\n",
"red, blue = \"238/86/52\", \"#4B8BBE\" # GMT red and Python blue\n",
"\n",
Expand All @@ -25,7 +26,7 @@
" text=[\"GMT low-level\", \"library\", \"GMT C API\", \"GMT modules\"] ,\n",
" font=\"8p,1,white\",\n",
")\n",
"fig.logo(position=\"g1/6.95+jMC+w2.15c\")\n",
"fig.logo(position=Position((1, 6.95), cstype=\"mapcoords\", anchor=\"MC\"), width=\"2.15c\")\n",
"\n",
"# Add the Python part.\n",
"fig.plot(x=[7.5, 15.5, 15.5, 7.5], y=[0, 0, 6, 6], pen=f\"2p,{blue}\", fill=f\"{blue}@70\", close=True)\n",
Expand Down Expand Up @@ -72,6 +73,14 @@
"fig.show()\n",
"fig.savefig(\"Fig2_PyGMT_ecosystem.png\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "09fcce02",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -90,7 +99,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
}
},
"nbformat": 4,
Expand Down