Object oriented approach to plot.ly #8
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All changes are in the additional \oo folder.
Overview
The session is stored in the state of the object and the Matlab plotting functions are implemented as overloaded methods.
The syntax
Advantages
Seamless integration of the plotly API.
The signup is prompted on first call of plotly(), and credentials are saved at the end (also prompted). Successive calls of pl = plotly(), will automatically load credentials.
Signup() and savecredentials() are also available externally to the object, so that you can create other profiles and overwrite existing saved credentials.
Useful commits to main proj
Apart from specific object oriented implementations, the first 3 commits fix some path handling for windows systems, getuserdir() for win retrieves %APPDATA% (safer) and prompts are implemented for signup (for username, email, and for saving credentials).