Skip to content
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

Support labels by #1347

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Support labels by #1347

merged 3 commits into from
Jun 17, 2024

Conversation

ahuang11
Copy link
Collaborator

Closes #1094

import hvplot.pandas
import pandas as pd

df = pd.DataFrame(
    {'City': ['Buenos Aires', 'Brasilia', 'Santiago'],
     'Country': ['Argentina', 'Brazil', 'Chile'],
     'Latitude': [-34.58, -15.78, -33.45],
     'Longitude': [-58.66, -47.91, -70.66]})
df.hvplot.labels("Longitude", "Latitude", "City", by="City")
image

@ahuang11 ahuang11 requested a review from maximlt May 30, 2024 00:50
Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.40%. Comparing base (e5e71d6) to head (85ccf13).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1347      +/-   ##
==========================================
+ Coverage   87.36%   87.40%   +0.04%     
==========================================
  Files          50       50              
  Lines        7471     7497      +26     
==========================================
+ Hits         6527     6553      +26     
  Misses        944      944              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@maximlt maximlt left a comment

Choose a reason for hiding this comment

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

I just added a simple test to exert subplots=True with by.

@maximlt
Copy link
Member

maximlt commented Jun 17, 2024

Unrelated test failures.

@maximlt maximlt merged commit b6dd178 into main Jun 17, 2024
3 of 8 checks passed
@maximlt maximlt deleted the support_labels_by branch June 17, 2024 08:16
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.

Using by with labels to color the text.
2 participants