Skip to content

Commit 6dceafe

Browse files
author
Benjamin Moody
committed
wfdb.plot.plot: rename create_figure to _create_figure.
This function is not in the wfdb module, is not listed in the documentation, and shouldn't be used by applications directly.
1 parent 641c686 commit 6dceafe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_get_plot_dims(self):
2424

2525
def test_create_figure_single_subplots(self):
2626
n_subplots = 1
27-
fig, axes = plot.create_figure(
27+
fig, axes = plot._create_figure(
2828
n_subplots, sharex=True, sharey=True, figsize=None
2929
)
3030
assert fig is not None
@@ -33,7 +33,7 @@ def test_create_figure_single_subplots(self):
3333

3434
def test_create_figure_multiple_subplots(self):
3535
n_subplots = 5
36-
fig, axes = plot.create_figure(
36+
fig, axes = plot._create_figure(
3737
n_subplots, sharex=True, sharey=True, figsize=None
3838
)
3939
assert fig is not None

wfdb/plot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def plot_items(
256256
ann_freq = _get_ann_freq(ann_freq, n_annot, fs)
257257

258258
# Create figure
259-
fig, axes = create_figure(n_subplots, sharex, sharey, figsize)
259+
fig, axes = _create_figure(n_subplots, sharex, sharey, figsize)
260260
try:
261261
if signal is not None:
262262
plot_signal(
@@ -393,7 +393,7 @@ def _get_plot_dims(signal, ann_samp):
393393
return sig_len, n_sig, n_annot, max(n_sig, n_annot)
394394

395395

396-
def create_figure(n_subplots, sharex, sharey, figsize):
396+
def _create_figure(n_subplots, sharex, sharey, figsize):
397397
"""
398398
Create the plot figure and subplot axes.
399399

0 commit comments

Comments
 (0)