Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

plot method in GraphWidget #192

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

Merged
merged 7 commits into from
Feb 20, 2015
Merged

plot method in GraphWidget #192

merged 7 commits into from
Feb 20, 2015

Conversation

chriddyp
Copy link
Member

"`dict`-like or `list`-like.")
if validate_figure:
try:
validate(figure, obj_type='Figure')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that darn tools.validate. if that didn't exist, i woulda placed this function in utils.py since i can't imagine anyone actually needing it.

### Changelog

- 1.6.7
Added `plot` method to `plotly.widgets.GraphWidget` for easy-to-use client-side graphing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ 💯

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reasons for not using GitHub releases instead ?

@etpinard
Copy link
Contributor

👍

@chriddyp
Copy link
Member Author

yeah, you're right, releases looks a bit nicer (e.g. https://github.com/ipython/ipython/releases)

@@ -247,6 +246,18 @@ def message_handler(widget, ranges):
"""
self._handle_registration('zoom', callback, remove)

def plot(self, figure_or_data, validate=True):
"""Plot figure_or_data in the Plotly graph.
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind throwing in a couple extra lines for docs describing the args?

@theengineear
Copy link
Contributor

looking good, just a couple notes in there from me

chriddyp added a commit that referenced this pull request Feb 20, 2015
`plot` method in `GraphWidget`
@chriddyp chriddyp merged commit 40c2a45 into master Feb 20, 2015
@chriddyp chriddyp deleted the plot_postmessage branch February 20, 2015 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.