question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Labeled data plotting

See original GitHub issue

An interesting feature of matplotlib which was added recently is the use of labeled data in the plotting function.

i.e. one can do

some_dict = {
    'elephant': [1, 3, 4],
    'cat': [8, 0, 7],
    'mouse': [3, 3, 3],
}
plt.scatter(data=some_dict, x="elephant", y="mouse")

this also works with anything that accepts indexing with “elephant” and “mouse” such as a data frame having such columns. I think this is an interesting feature worth implementing in bqplot.pyplot.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dmadekacommented, Dec 5, 2016

FYI @ellisonbg we support this in an mpl style syntax now…

0reactions
SylvainCorlaycommented, Dec 5, 2016

✨ 🎉 👍 💯

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Labeled Scatter Plot? - Displayr
A labeled scatter plot is a data visualization that displays the values of two different variables, with text labels showing the meaning of...
Read more >
Plot labelled and unlabeled data matplotlib - Stack Overflow
Now, i am trying to plot a figure where one subplot contains the dataset as cluster with respect to each label from Y...
Read more >
How To Label The Values Of Plots With Matplotlib
This part is easy with Matplotlib. Just call the plot() function and provide your x and y values.
Read more >
Data labels - Minitab - Support
Data labels give information about individual data representations on a graph. Different graphs have different types of data representations.
Read more >
How to create a scatter plot and customize data labels in Excel
During Consulting Projects you will want to use a scatter plot to show potential options. Customizing data labels is not easy so today...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found