# Image title of spectal connectivity

**URL:** <https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905>\
**Category:** Support & Discussions\
**Tags:** visualization, connectivity\
**Created:** [March 31, 2021, 2:37pm UTC](https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905 "2021-03-31T14:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [March 31, 2021, 2:37pm UTC](https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905/1 "2021-03-31T14:37:32Z")

</div>

I have a question about something that appears when I am coding spectral connectivity. As shown in the image, if I do **wpli** method, the image always shows **pli**. And, i don’t know why it is happening.

I hope you can help me with this situation.

 ![WPLI_Connectivity](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/8d52c3417762f216e6b400ac2d236b9e2af479fe.png) ![PLI_Connectivity](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/d9834242ceb6421b23e8e1364d7b1cb579c00380.png) ![image (1)](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/b3fb369e3deb0b9915c21212fb62d06b93e32c84.png)

- MNE-Python version: 0.20!
- operating system: windows

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [March 31, 2021, 2:58pm UTC](https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905/2 "2021-03-31T14:58:51Z")

</div>

This is a bug. The title of the colorbar is (incorrectly) hard-coded into the plotting function. Note that the `plot_sensors_connectivity` function only takes in the `con` array (which could be from _any_ connectivity measure) and the `info` object from the original epochs (before connectivity was computed). So in fact the plotting function has no way of knowing which connectivity measure was calculated. Probably this is a relic of a time when phase lag index was the only measure we offered.

Could you open a new bug report on our GitHub page describing the problem and linking to this discussion?

---

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [March 31, 2021, 3:47pm UTC](https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905/3 "2021-03-31T15:47:12Z")

</div>

Thank you very much.  
I will open a new bug report on your github.

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [April 5, 2021, 6:48pm UTC](https://mne.discourse.group/t/image-title-of-spectal-connectivity/2905/4 "2021-04-05T18:48:39Z")

</div>

this will be fixed by [expose colorbar label parameter in plot\_sensors\_connectivity by drammock · Pull Request #9248 · mne-tools/mne-python · GitHub](https://github.com/mne-tools/mne-python/pull/9248) which should be merged into the `main` branch within the next day or so.
