Minimize width of rug section

Hi @DeLaRiva, this is related to the xaxis domains. Take this example with two “rugs”:

import plotly.express as px
df = px.data.iris()
fig = px.scatter(
    df, 
    x="sepal_length", 
    y="sepal_width", 
    marginal_x="histogram", 
    marginal_y="rug"
)
fig.show()

Changing the xaxis domains of each xaxis:

fig.update_layout(
    xaxis={'domain': [0.0,0.95]}, 
    xaxis2={'domain': [0.96,1.0]},
    xaxis3={'domain': [0.0,0.95]}
)

creates:

2 Likes