Skip to content

TST/VIZ: add test for legend colors for DataFrame with duplicate column labels #11136 #32451

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 4 commits into from
Mar 12, 2020
Merged

Conversation

gabrielvf1
Copy link
Contributor

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @gabrielvf1 for the PR.

@@ -3316,6 +3316,22 @@ def test_missing_markers_legend_using_style(self):
self._check_legend_labels(ax, labels=["A", "B", "C"])
self._check_legend_marker(ax, expected_markers=[".", ".", "."])

def test_colors_of_columns_with_same_name(
Copy link
Member

Choose a reason for hiding this comment

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

something like test_legend_colors_duplicate_labels ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the reply, i have just made the changes . Can you check if is everything right now?

@simonjayhawkins simonjayhawkins added Testing pandas testing functions or related to the test suite Visualization plotting labels Mar 5, 2020
@simonjayhawkins simonjayhawkins changed the title Test create for Issue 11136 TST/VIZ: add test for legend colors for DataFrame with duplicate column labels #11136 Mar 5, 2020
@gabrielvf1
Copy link
Contributor Author

I have just made the changes. Can you check if is everything right now? Really thanks!

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @gabrielvf1 for those updates.

@gabrielvf1
Copy link
Contributor Author

Fix were made, the for syntax is better now and now im using methods from matplotlib like get_color() and get_legend().

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Mar 10, 2020
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @gabrielvf1 lgtm pending green

@WillAyd WillAyd merged commit 940bbb5 into pandas-dev:master Mar 12, 2020
@WillAyd
Copy link
Member

WillAyd commented Mar 12, 2020

Great thanks @gabrielvf1

SeeminSyed pushed a commit to CSCD01-team01/pandas that referenced this pull request Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plot uses incorrect colors when columns have the same name
3 participants