I wanted to show the connections between two columns of my dataframe which have duplicated connections, using a parallel categories diagram. The thing is, I can't figure how to adjust the location of the colorbar so it won't interrupt the rest of the labels. I'm adding the code for more context:
import plotly.express as px
from Models.Linear import Linear
model = Linear('YAP1')
index = model.get_index()
m, n = model.get_full_A().shape
df = pd.DataFrame(index=np.arange(m), columns=['Expression', 'Methylation'])
df['Data Set'] = index.get_level_values(0).values.flatten()
df['Expression'] = index.get_level_values(1).values.flatten()
df['Methylation'] = index.get_level_values(2).values.flatten()
df['size'] = how_much_to_satisfy()
fig = px.parallel_categories(df, dimensions=['Expression', 'Methylation'],
color="size", color_continuous_scale=px.colors.sequential.Inferno,
width=100, )
fig.update_layout(autosize=False, width=1200, height=1500,
margin=dict(l=500, r=300, b=65, t=90, pad=4), font=dict(size=15))
Thanks!


