Skip to content

Commit 9ed579d

Browse files
Figs1&6: Update Figure.text's offset parameter to the new syntax and bump to pygmt v0.19.0dev229 (#66)
* Figs1&6: Update Figure.text's offset parameter to the new syntax and bump to pygmt v0.19.0dev229 * Update README.md Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com> --------- Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
1 parent d442b9e commit 9ed579d

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Fig1_PyGMT_GMT_comparison.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@
122122
"fig.basemap(projection=\"R7c\", region=[0, 360, -90, 90], frame=True)\n",
123123
"fig.coast(land=\"tan\", water=\"lightblue\")\n",
124124
"fig.text(position=\"MC\", text=\"PyGMT\", font=\"40p,AvantGarde-Book,red@75\")\n",
125-
"fig.text(text=\"(c)\", position=\"TL\", font=\"9p,Helvetica-Bold\", offset=\"-0.5/0.6\", no_clip=True)\n",
126-
" \n",
125+
"fig.text(text=\"(c)\", position=\"TL\", font=\"9p,Helvetica-Bold\", offset=(-0.5, 0.6), no_clip=True)\n",
126+
"\n",
127127
"fig.show()\n",
128128
"fig.savefig(\"Fig1_PyGMT_GMT_comparison.png\")"
129129
]
130130
}
131131
],
132132
"metadata": {
133133
"kernelspec": {
134-
"display_name": "Python 3 (ipykernel)",
134+
"display_name": "pygmt",
135135
"language": "python",
136136
"name": "python3"
137137
},
@@ -145,7 +145,7 @@
145145
"name": "python",
146146
"nbconvert_exporter": "python",
147147
"pygments_lexer": "ipython3",
148-
"version": "3.12.8"
148+
"version": "3.13.9"
149149
}
150150
},
151151
"nbformat": 4,

Fig6_PyGMT_geopandas.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
" x=cities.geometry.x,\n",
6161
" y=cities.geometry.y,\n",
6262
" text=cities[\"name\"],\n",
63-
" offset=\"0.35c/0.2c\",\n",
63+
" offset=(0.35, 0.2),\n",
6464
" justify=\"BC\",\n",
6565
" font=\"4.5p,Helvetica-Bold\",\n",
6666
" fill=\"white@30\",\n",
@@ -86,7 +86,7 @@
8686
],
8787
"metadata": {
8888
"kernelspec": {
89-
"display_name": "Python 3 (ipykernel)",
89+
"display_name": "pygmt",
9090
"language": "python",
9191
"name": "python3"
9292
},
@@ -100,7 +100,7 @@
100100
"name": "python",
101101
"nbconvert_exporter": "python",
102102
"pygments_lexer": "ipython3",
103-
"version": "3.14.3"
103+
"version": "3.13.9"
104104
}
105105
},
106106
"nbformat": 4,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ These notebooks require a **development version of PyGMT**. The environment defi
2828
in `environment.yml` currently installs PyGMT from TestPyPI:
2929

3030
- GMT: `6.6.0`
31-
- pygmt: `0.19.0.dev219`
31+
- PyGMT: `0.19.0.dev229`
3232

3333
Create and activate the environment:
3434

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ dependencies:
1616
- xarray=2026.4.0
1717
- pip:
1818
- --index-url https://test.pypi.org/simple/
19-
- pygmt==0.19.0.dev219
19+
- pygmt==0.19.0.dev229

0 commit comments

Comments
 (0)