Skip to content

Commit 2819985

Browse files
committed
Move figure.py and base_plotting.py under a pygmt/figure folder
Also fixed some relative imports.
1 parent 67538dd commit 2819985

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pygmt/figure.py renamed to pygmt/figure/__init__.py

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

13-
from .clib import Session
13+
from ..clib import Session
1414
from .base_plotting import BasePlotting
15-
from .exceptions import GMTError, GMTInvalidInput
16-
from .helpers import (
15+
from ..exceptions import GMTError, GMTInvalidInput
16+
from ..helpers import (
1717
build_arg_string,
1818
fmt_docstring,
1919
use_alias,

pygmt/base_plotting.py renamed to pygmt/figure/base_plotting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import numpy as np
77
import pandas as pd
88

9-
from .clib import Session
10-
from .exceptions import GMTError, GMTInvalidInput
11-
from .helpers import (
9+
from ..clib import Session
10+
from ..exceptions import GMTError, GMTInvalidInput
11+
from ..helpers import (
1212
build_arg_string,
1313
dummy_context,
1414
data_kind,

0 commit comments

Comments
 (0)