Skip to content

Commit 698ddd7

Browse files
Remove fig.show()
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent fb23907 commit 698ddd7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ def _vline_coords():
200200

201201
# Shape outline (over ends of compass lines for hexagon shape)
202202
fig.plot(x=0, y=0, pen=f"{thick_shape}c,{blue}", **args_shape)
203-
# fig.show()
204203

205204
# Arrow in background color (over shape outline but under letters)
206205
fig.plot(data=_bg_arrow_coords(), fill=color_bg, perspective=True)
@@ -223,13 +222,11 @@ def _vline_coords():
223222
perspective=True,
224223
no_clip=True,
225224
)
226-
# fig.show()
227225

228226
# Add wordmark "PyGMT"
229227
if wordmark:
230228
text_wm = f"@;{color_py};Py@;;@;{color_gmt};GMT@;;"
231229
fig.text(text=text_wm, no_clip=True, **args_text_wm)
232-
# fig.show()
233230

234231
# Helpful for implementing the logo; not included in the logo
235232
if debug:
@@ -245,7 +242,6 @@ def _vline_coords():
245242
fig.hlines(y=[r4, r5], xmin=-3, pen=pen, perspective=True)
246243
fig.vlines(x=[r4, (thick_gap + r4) / 2], ymax=3, pen=pen, perspective=True)
247244

248-
# fig.show()
249245
fig_name_logo = "pygmt_logo"
250246
fig.savefig(fname=f"{fig_name_logo}.eps")
251247

0 commit comments

Comments
 (0)