Skip to content

Commit

Permalink
ENH: img props
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Oct 17, 2024
1 parent 1dd212e commit 9bc0c52
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 53 deletions.
2 changes: 2 additions & 0 deletions doc/changes/devel/newfeature.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Improved reporting and plotting options:

- :meth:`mne.Report.add_projs` can now plot with :func:`mne.viz.plot_projs_joint` rather than :func:`mne.viz.plot_projs_topomap`
- :class:`mne.Report` now has attributes ``img_max_width`` and ``img_max_res`` that can be used to control image scaling.
- :class:`mne.Report` now has an attribute ``collapse`` that allows collapsing sections and/or subsections by default.
- :func:`mne.viz.plot_head_positions` now has a ``totals=True`` option to show the total distance and angle of the head.

Changes by `Eric Larson`_.
2 changes: 1 addition & 1 deletion mne/html_templates/report/html.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>


<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse show"
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}"
aria-labelledby="accordion-header-{{ id }}">
<div class="accordion-body">
{{ html | safe }}
Expand Down
2 changes: 1 addition & 1 deletion mne/html_templates/report/section.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>


<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse show"
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}"
aria-labelledby="accordion-header-{{ id }}">
<div class="accordion-body">
{% block html_content %}
Expand Down
2 changes: 1 addition & 1 deletion mne/html_templates/report/slider.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</button>
</div>

<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse show"
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}"
aria-labelledby="accordion-header-{{ id }}">
<div class=" accordion-body">
<div class="mx-auto d-block w-75">
Expand Down
Loading

0 comments on commit 9bc0c52

Please sign in to comment.