change linewidth in chord plot

Viewed 18

I want to plot a chord plot like the following:

enter image description here

With chord linewidth = some value associated with each chord. Curently am using an example taken from here, however I am unable to modify linewidth.

  • how do i modify linewith?
  • is there another library that can work?
# pip install mne_connectivity
from mne_connectivity.viz import plot_connectivity_circle
import numpy as np
import pandas as pd
N = 8
node_names = [f"N{i}" for i in range(N)]
con = np.random.rand(N,N)
fig, axes = plot_connectivity_circle(con, node_names,colormap='Blues',
    facecolor='white', textcolor='black', 
    linewidth=10 )  #### CONTROL LINEWIDTH HERE 
fig.show()

0 Answers
Related