Skip to content

Commit

Permalink
Tweaks to img handlng - use png
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Apr 20, 2020
1 parent cb290c1 commit be4eb90
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ any identified peaks, reflecting periodic components.

Example output for the report of a FOOOF fit on an individual power spectrum:

.. image:: https://raw.githubusercontent.com/fooof-tools/fooof/master/doc/img/FOOOF_report.pdf
.. image:: https://raw.githubusercontent.com/fooof-tools/fooof/master/doc/img/FOOOF_report.png

**Defining the model Settings**

Expand Down Expand Up @@ -264,7 +264,7 @@ We can fit this which can be fit as:
Example output from using FOOOFGroup across a group of power spectra:

.. image:: https://raw.githubusercontent.com/fooof-tools/fooof/master/doc/img/FOOOFGroup_report.pdf
.. image:: https://raw.githubusercontent.com/fooof-tools/fooof/master/doc/img/FOOOFGroup_report.png

**Other Functionality**

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
'../motivations/concepts',
'../motivations/measurements']),
'within_subsection_order': FileNameSortKey,
'default_thumb_file': 'img/spectrum.pdf',
'default_thumb_file': 'img/spectrum.png',
'backreferences_dir': 'generated', # Where to drop linking files between examples & API
'doc_module': ('fooof',),
'reference_url': {'fooof': None}
Expand Down
Binary file removed doc/img/FOOOFGroup_report.pdf
Binary file not shown.
Binary file added doc/img/FOOOFGroup_report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/img/FOOOF_report.pdf
Binary file not shown.
Binary file added doc/img/FOOOF_report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/img/spectrum.pdf
Binary file not shown.
Binary file added doc/img/spectrum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions doc/make_doc_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
fm.fit(freqs, spectrum, [3, 40])

# Save out the report
fm.save_report('FOOOF_report.pdf', 'img')
fm.save_report('FOOOF_report.png', 'img')

## Group Plot

Expand All @@ -40,7 +40,7 @@ def main():
fg.fit(freqs, spectra, [3, 30])

# Save out the report
fg.save_report('FOOOFGroup_report.pdf', 'img')
fg.save_report('FOOOFGroup_report.png', 'img')

## Make the icon plot

Expand All @@ -64,7 +64,7 @@ def custom_style(ax, log_freqs, log_powers):
plot_spectrum(fs, ps, log_freqs=False, log_powers=True, lw=12, alpha=0.8,
color='grey', plot_style=custom_style, ax=check_ax(None, [6, 6]))
plt.tight_layout()
plt.savefig('img/spectrum.pdf')
plt.savefig('img/spectrum.png')

## Clean Up

Expand Down

0 comments on commit be4eb90

Please sign in to comment.