File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 44
55import base64
66import os
7- import warnings
87from pathlib import Path
98from tempfile import TemporaryDirectory
109from 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 """
You can’t perform that action at this time.
0 commit comments