-
Notifications
You must be signed in to change notification settings - Fork 572
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
facet_wrap() fails with mixed-type values for color, such as str and float #589
Comments
The issue arises as ggplot.py:369 tries to sort mixed data type. One workaround is to use pd.Categorical The only solution I see is to use |
Haven't had the opportunity to try your commit, but just to note: If there was a way (and for my application I would prefer) to get an individual legend per graph, the problem would be also solved for me, because within a single graph I wouldn't be mixing data types. |
then i'd just split the data frame in two by a mask and plot them separately. |
True, but then, ggplot does not allow me to specify the axes to plot in. I
want to have subplots, and facets give me this in a simple manner, but
you're right, for this case i'd actually prefer to plot separately.
…On Sun, Jan 22, 2017, 22:09 Dmytro Lituiev ***@***.***> wrote:
then i'd just split the data frame in two by a mask and plot them
separately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#589 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAC1hjQHqm1dhq7ptpivhFtIIkJNwquCks5rU8VvgaJpZM4LqKTI>
.
|
When I try to do something like this:
I get the following
TypeError
:Removing
color='value'
from theaes()
call does not trigger the issue.Admittedly I am a novice to ggplot... But I suspect the problem is that the system tries to construct a common color scale, which of course is bound to fail the way it is handled now.
The text was updated successfully, but these errors were encountered: