You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add different text colors to each node name when plotting with mne_connectivity.viz.plot_connectivity_circle()function, similar to the node_colors parameter. For example, I would like to represent the node names that has significant connections with textcolor='black', and textcolor='gray' for those without any significant connections. Currently, only a single textcolor is supported.
I have also tried using the matplotlib.axes.Axes.tick_params() function to change the tick colors, but it does not work (despite not showing any errors).
fig, axes=plt.subplots(figsize=(10,10), facecolor='w', subplot_kw=dict(polar=True))
gFig, gAx=plot_connectivity_circle(conmat,
list(df),
node_colors=dmap.nodecolor,
node_angles=node_angles,
facecolor='w',
textcolor='k',
fontsize_names=10,
colormap='hot',
node_edgecolor='w',
ax=axes, show=False)
# Both the following option do not workaxes.tick_params(axis='both', labelcolor='red')
gAx.tick_params(axis='both', labelcolor='red')
I have currently resorted to using image editing software (e.g., Inkscape) to do this trick, but let me know if it is possible to represent the node name texts in different color with python code.
The text was updated successfully, but these errors were encountered:
Is it possible to add different text colors to each node name when plotting with
mne_connectivity.viz.plot_connectivity_circle()
function, similar to thenode_colors
parameter. For example, I would like to represent the node names that has significant connections withtextcolor='black'
, andtextcolor='gray'
for those without any significant connections. Currently, only a singletextcolor
is supported.I have also tried using the
matplotlib.axes.Axes.tick_params()
function to change the tick colors, but it does not work (despite not showing any errors).I have currently resorted to using image editing software (e.g., Inkscape) to do this trick, but let me know if it is possible to represent the node name texts in different color with python code.
The text was updated successfully, but these errors were encountered: