-
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
Aesthetic mappings not consistent with ggplot2 #86
Comments
Could you add the code which produces the error (and the wrong plot)? There is non visible in the bugreport. |
Updated issue with the requested info. |
Looks like the column is being treated as a text column and not numerical so it is getting a discrete scale instead of a continuous one. i would check your pandas dataframe and see if it is using the first line as a column or if it is making the entire column into a string. something like: |
This is a mishandling of continuous color scales. The error is reproducible here:
I don't see |
walking through the code, I think the color mapping is fine. The color differences in python vs. R are due to an inverted scale and a legend that is displayed as quantile instead of as a continuous variable. I don't think either of those have been implemented yet in this version of ggplot. Your specific error I couldn't track down but it believe it is due to some cross talk between
The |
The below case where ggplot(aes(x='TIME', y='Watts', shape="Volts", color="category", ymin=YMIN, ymax=YMAX), data=spowd) + geom_point() gives:
|
Here's the same graph as above, with a more recent version of ggplot: Main problems remaining:
Everything else is looking pretty good though :) |
@naught101 Thanks for updating, I think the spectrum color-bar is the greatest visual inconsistency. |
Aesthetic mappings not consistent with ggplot2 see: http://docs.ggplot2.org/0.9.3.1/geom_point.html
Steps to reproduce:
Actual outcome
Expected outcome
Also using other data If I give a column with many different values("Volts" column) as an input for color I get the error at the end of this report.
Code here:
https://github.com/eduardflorinescu/ggplot/blob/master/examples/test_aestheticmappings.py
CSV here:
https://github.com/eduardflorinescu/ggplot/blob/master/examples/pandas_generated.csv
Notice that if I use the "category" column for color it works, if I use "Volts" I should get an aesthetic mapping instead I get the following error:
The text was updated successfully, but these errors were encountered: