Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions pygmt/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import base64
import os
import warnings
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Literal, overload
Expand Down Expand Up @@ -120,21 +119,6 @@ def _activate_figure(self) -> None:
with Session() as lib:
lib.call_module(module="figure", args=[self._name, fmt])

# TODO(PyGMT>=v0.18.0): Remove the _preprocess method.
def _preprocess(self, **kwargs):
"""
Call the ``figure`` module before each plotting command to ensure we're plotting
to this particular figure.
"""
self._activate_figure()
warnings.warn(
"The Figure._preprocess() method is deprecated since v0.16.0 and will be "
"removed in v0.18.0. Use Figure._activate_figure() instead.",
FutureWarning,
stacklevel=2,
)
return kwargs

@property
def region(self) -> np.ndarray:
"""
Expand Down