Skip to content

Commit 62dba14

Browse files
committed
misc small doc fixes
1 parent 5a561c7 commit 62dba14

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

examples/manage/plot_fit_models_3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
from specparam.sim import sim_group_power_spectra
6262
from specparam.sim.utils import create_freqs
6363
from specparam.sim.params import param_sampler
64-
from specparam.utils.io import load_group
64+
from specparam.utils.io import load_group_model
6565

6666
###################################################################################################
6767
# Example Set-Up
@@ -229,7 +229,7 @@
229229
###################################################################################################
230230

231231
# Reload our list of SpectralGroupModels
232-
fgs = [load_group(file_name, file_path='results') \
232+
fgs = [load_group_model(file_name, file_path='results') \
233233
for file_name in os.listdir('results')]
234234

235235
###################################################################################################

specparam/core/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def gen_methods_report_str(concise=False):
208208
'',
209209

210210
# Methods report information
211-
'To report on using spectral parameterization, you should report (at minimum):',
211+
'Reports using spectral parameterization should include (at minimum):',
212212
'',
213213
'- the code version that was used',
214214
'- the algorithm settings that were used',

specparam/plts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Plots sub-module."""
22

3-
from .spectra import plot_spectra
3+
from .spectra import plot_spectra, plot_spectrogram

tutorials/plot_09-Reporting.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@
2222
# sphinx_gallery_start_ignore
2323
# Note: this code gets hidden, but serves to create the text plot for the icon
2424
from specparam.core.strings import gen_methods_report_str
25-
from specparam.core.reports import REPORT_FONT
26-
import matplotlib.pyplot as plt
27-
text = gen_methods_report_str(concise=True)
28-
text = text[0:142] + '\n' + text[142:]
29-
_, ax = plt.subplots(figsize=(8, 3))
30-
ax.text(0.5, 0.5, text, REPORT_FONT, ha='center', va='center')
31-
ax.set_frame_on(False)
32-
_ = ax.set(xticks=[], yticks=[])
25+
from specparam.plts.templates import plot_text
26+
text = gen_methods_report_str()
27+
plot_text(text, 0.5, 0.5, figsize=(12, 3))
3328
# sphinx_gallery_end_ignore
3429

3530
###################################################################################################

0 commit comments

Comments
 (0)