Skip to content

Commit 5ac2e07

Browse files
committed
Delete base_plotting.py and move function imports to figure.py
1 parent ed7ef88 commit 5ac2e07

File tree

2 files changed

+19
-61
lines changed

2 files changed

+19
-61
lines changed

pygmt/base_plotting.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

pygmt/figure.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
except ImportError:
1111
Image = None
1212

13-
from pygmt.base_plotting import BasePlotting
1413
from pygmt.clib import Session
1514
from pygmt.exceptions import GMTError, GMTInvalidInput
1615
from pygmt.helpers import (
@@ -27,7 +26,7 @@
2726
SHOWED_FIGURES = []
2827

2928

30-
class Figure(BasePlotting):
29+
class Figure():
3130
"""
3231
A GMT figure to handle all plotting.
3332
@@ -372,3 +371,21 @@ def _repr_html_(self):
372371
base64_png = base64.encodebytes(raw_png)
373372
html = '<img src="data:image/png;base64,{image}" width="{width}px">'
374373
return html.format(image=base64_png.decode("utf-8"), width=500)
374+
375+
from pygmt.src import ( # pylint: disable=import-outside-toplevel
376+
basemap,
377+
coast,
378+
colorbar,
379+
contour,
380+
grdcontour,
381+
grdimage,
382+
grdview,
383+
image,
384+
inset,
385+
legend,
386+
logo,
387+
meca,
388+
plot,
389+
plot3d,
390+
text,
391+
)

0 commit comments

Comments
 (0)