Skip to content

WIP,FIX: Fixes arrow rendering [circle full] - #6510

Merged
agramfort merged 1 commit into
mne-tools:masterfrom
GuillaumeFavelier:fix_plot_vector_source_estimates
Jul 1, 2019
Merged

agramfort merged 1 commit into
mne-tools:masterfrom
GuillaumeFavelier:fix_plot_vector_source_estimates

Conversation

@GuillaumeFavelier

Copy link
Copy Markdown
Contributor

Fixes #6498

So far, what I found is in this comment. First attempt is by enabling scale_data_colormap().

@GuillaumeFavelier

Copy link
Copy Markdown
Contributor Author

I don't know yet the impact of this change, I'm waiting for the CIs.
But this is the result when I build the documentation locally:

image

@agramfort

agramfort commented Jun 28, 2019 via email

Copy link
Copy Markdown
Member

@GuillaumeFavelier

Copy link
Copy Markdown
Contributor Author

So far, in the comparison between 0.16 and this version:

I noticed that the colorbar has a different range (before and now) for:

examples/inverse/plot_vector_mne_solution.py

I compared the examples in the following list and noticed no significant difference:

examples/connectivity/plot_mne_inverse_coherence_epochs.py
examples/connectivity/plot_mne_inverse_psi_visual.py
examples/forward/plot_source_space_morphing.py
examples/inverse/plot_mne_crosstalk_function.py
examples/inverse/plot_mne_point_spread_function.py
examples/visualization/plot_parcellation.py

@agramfort

agramfort commented Jul 1, 2019 via email

Copy link
Copy Markdown
Member

@GuillaumeFavelier

GuillaumeFavelier commented Jul 1, 2019 •

Copy link
Copy Markdown
Contributor Author

I checked locally if the changes of this PR caused this and I found a difference in opacity but not in the colorbar's range. As it's not directly related, I'll take care of it in a different PR.

But is the rendering in this version good enough?

0.16 master this version
image image image

EDIT: I added the 0.16 for completion

@GuillaumeFavelier

Copy link
Copy Markdown
Contributor Author

I checked the range of values of stc.data and although it varies roughly between -29.11 and 15.20, I verified that the range of the colorbar matches the one given by the _limits_to_control_points():

Using control points [1.86911522 2.26944519 6.37046324]

So I will conclude that these are indeed the correct values for the colorbar.

@agramfort
agramfort marked this pull request as ready for review July 1, 2019 18:01
@agramfort
agramfort merged commit f2a6afa into mne-tools:master Jul 1, 2019
@agramfort

Copy link
Copy Markdown
Member

Cool. Thx @GuillaumeFavelier for checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Arrow rendering no longer correct (scale issue?)

2 participants