Skip to content

Commit a1faeaa

Browse files
authored
Figure: Remove the deprecated _preprocess method (Deprecated since v0.16.0) (#4146)
1 parent 1455444 commit a1faeaa

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pygmt/figure.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import base64
66
import os
7-
import warnings
87
from pathlib import Path
98
from tempfile import TemporaryDirectory
109
from typing import Literal, overload
@@ -120,21 +119,6 @@ def _activate_figure(self) -> None:
120119
with Session() as lib:
121120
lib.call_module(module="figure", args=[self._name, fmt])
122121

123-
# TODO(PyGMT>=v0.18.0): Remove the _preprocess method.
124-
def _preprocess(self, **kwargs):
125-
"""
126-
Call the ``figure`` module before each plotting command to ensure we're plotting
127-
to this particular figure.
128-
"""
129-
self._activate_figure()
130-
warnings.warn(
131-
"The Figure._preprocess() method is deprecated since v0.16.0 and will be "
132-
"removed in v0.18.0. Use Figure._activate_figure() instead.",
133-
FutureWarning,
134-
stacklevel=2,
135-
)
136-
return kwargs
137-
138122
@property
139123
def region(self) -> np.ndarray:
140124
"""

0 commit comments

Comments
 (0)