Skip to content

Navigation Menu

Sign in
Sign up

Saving 3d figures only saves the default view, not what the user actually sees #35

Open
Labels
enhancementNew feature or request

Description

When saving 3d figures (i.e., output of plot_3d & pfss_3d) from within streamlit, plotly will always provide the default view of the plot, and not what the user actually sees (e.g., after zooming and rotating the figure). This is based inherently on how plotly works, but it should be possible to partly bypass this by first obtaining the viewing information and then manually setting them to the same values while saving, as described at https://stackoverflow.com/a/77113975

The problem is that with the current version of streamlit (1.40.0) it is not possible to obtain the dynamic viewing information because only selection information are supported by streamlit's st.plotly_chart function (cf. https://docs.streamlit.io/develop/api-reference/charts/st.plotly_chart#plotlystate). Hopefully this will be extended in the future, and then the solution proposed above can be applied.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /