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
The problem being that fig.to_dict() here returns {'data': [{'type': 'scatter'}], 'layout': {}} and when pio.show() gets it, it seems to applies the default template. This doesn't happen with pio.show(fig.to_dict(), validate=False) or with pio.show(fig.update_layout(template={}, overwrite=True).to_dict(), validate=False).
So should pio.show() be applying the default template at all here? (Hard to say "no" here unless we do validation somehow without just creating a Figure ?)
And/or should fig.to_dict() include the template: {} to signal to functions like pio.show() that no defaulting should happen?
The text was updated successfully, but these errors were encountered:
Original observation: neither call here suppresses the default template:
Popping the hood on that method, it looks like it's doing the equivalent of:
The problem being that
fig.to_dict()
here returns{'data': [{'type': 'scatter'}], 'layout': {}}
and whenpio.show()
gets it, it seems to applies the default template. This doesn't happen withpio.show(fig.to_dict(), validate=False)
or withpio.show(fig.update_layout(template={}, overwrite=True).to_dict(), validate=False)
.So should
pio.show()
be applying the default template at all here? (Hard to say "no" here unless we do validation somehow without just creating aFigure
?)And/or should
fig.to_dict()
include thetemplate: {}
to signal to functions likepio.show()
that no defaulting should happen?The text was updated successfully, but these errors were encountered: