I have some data which I am plotting using px.scatter_matrix
giving me splom traces. However I think I am misunderstanding how I can update (or even if I can update) what I would think are “layout” attributes in a splom plot. Here is a MRP:
import plotly.express as px
df = px.data.gapminder().query("year==2007")
fig = px.scatter_matrix(df, dimensions=["pop", "lifeExp", "gdpPercap"],
color="continent", title="Gapminder 2007")
fig.show()
# Lets change the y label in the top left plot
fig = fig.update_yaxes(title_text="Population", row=1, col=1)
fig.show() # Nothing happens!
I read through the fundamentals of the figure carefully and when I print the figure I can see labels assigned to each trace, but I cannot figure out how these can be updated and why they are not a part of the layout. Would someone be able to help me understand what I am missing regarding the functinoality of splom plots and where I can go for a reference to understand the functionality going forward? Thank you so much for your help!