-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing Templates/Themes #425
Comments
@tarzzz here's some docs on how themes are stored in Plotly. Note that the themes need an update to follow our PlotSchema. We settled on having It'd be cool if the format of themes created Python matched what we're trying to store in the backend. That way they could be sharable. Also, unless there's a good reason to break from calling things |
Please note, both links above are dead. |
Has there been any progress on this? |
They actually link to a private repo that we can't open-source ATM unfortunately |
this has been added in plotly.js: plotly/plotly.js#2761 |
Going through the discussion in this thread: #217
We can add template functionality to the API Libraries. Some pointers:
py.plot(fig, template='ggplot')
. Template can be a keyword ( 'ggplot', 'seaborn' etc.) or aFigure
instance. This way a user can copy the theme from an existing chart the user has access to (which many people have been asking about, in support queries)..plotly/user_templates
directory, and built-in templates in.plotly/plotly_templates
directory.template.json
and a reference in atemplates.py
file.Figure
orLayout
objects (basically deserialize them).update
method, which can work on Plotly's Graph Objects (as a utility method).@cldougl @jackparmer @theengineear : please provide comments/suggestions ..
The text was updated successfully, but these errors were encountered: