-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Changed integer based indexing to location based index #781
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
Changes from all commits
738065e
42c0d99
b0da3c6
76d9d17
fb39dfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -413,7 +413,7 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, | |
| mode='markers', | ||
| type=trace_type, | ||
| showlegend=False, | ||
| **kwargs | ||
| **kwargs_trace | ||
| ) | ||
| fig.append_trace(trace, row_count + 1, col_count + 1) | ||
| if row_count == 0: | ||
|
|
@@ -783,7 +783,7 @@ def create_facet_grid(df, x, y, facet_row=None, facet_col=None, | |
| ) | ||
| show_legend = False | ||
| if color_name: | ||
| if isinstance(df[color_name][0], str) or color_is_cat: | ||
| if isinstance(df[color_name].iloc[0], str) or color_is_cat: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are there other places in the code where this happens? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alishobeiri There's a Thanks for doing this! Awesome stuff. |
||
| show_legend = True | ||
| if isinstance(colormap, dict): | ||
| utils.validate_colors_dict(colormap, 'rgb') | ||
|
|
@@ -812,7 +812,7 @@ def create_facet_grid(df, x, y, facet_row=None, facet_col=None, | |
| marker_color, kwargs_trace, kwargs_marker | ||
| ) | ||
|
|
||
| elif isinstance(df[color_name][0], Number): | ||
| elif isinstance(df[color_name].iloc[0], Number): | ||
| if isinstance(colormap, dict): | ||
| show_legend = True | ||
| utils.validate_colors_dict(colormap, 'rgb') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch