We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68f7dd commit a75a440Copy full SHA for a75a440
pygmt/src/shift_origin.py
@@ -2,7 +2,7 @@
2
shift_origin - Shift plot origin in x and/or y directions.
3
"""
4
5
-from contextlib import contextmanager
+import contextlib
6
7
from pygmt.clib import Session
8
from pygmt.helpers import build_arg_list
@@ -106,7 +106,7 @@ def shift_origin(
106
_xshift = lib.get_common("X") # False or xshift in inches
107
_yshift = lib.get_common("Y") # False or yshift in inches
108
109
- @contextmanager
+ @contextlib.contextmanager
110
def _shift_origin_context():
111
112
An internal context manager to shift the plot origin temporarily.
0 commit comments