-
Notifications
You must be signed in to change notification settings - Fork 8
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
Figure Factory #16
Comments
Hello Fan, I'm glad you like and use the library and I certainly appreciate the kind words. Now, regarding your proposal, I think I see two somewhat separate issues:
|
BTW, the extension Trace {
@discardableResult
func show(layout: Layout? = nil, config: Config? = nil) -> Figure {
let figure = Figure(data: [self], layout: layout, config: config)
figure.show()
return figure
}
} |
I think this |
- Refactor Trace into a separate file - Improved documentation - Simple unit test
Thanks for your comments, Fan. I really appreciate that you took the time to write your feedback.
You're also right about the |
Thank you for this awesome library :) Although the schema-based system works really well, I think one of the main hassle in using
Plotly.swift
is its lack ofmatplotlib
-style plot shorthands like.scatter(x, y)
,.quiver(x, y, u, v)
, et cetera. The main Plotly Python API providesfigure_factory
to automate some of these tasks, for example:https://plotly.com/python-api-reference/generated/plotly.figure_factory.create_quiver.html
I think it would be awesome if we can have similar functionality so people can start right away using Plotly.swift without having to remember what the schema is for all the different types of figures. I think this could be put in a separate package like
PlotlyTools
, just likematplotlib.pyplot
.The text was updated successfully, but these errors were encountered: