Reputation: 1013
I'm trying to get my seaborn plot to look something like this:
If I use lmplot with the z-axis for the hue, I get this:
The lmplot in the picture is basically what I want, but I need the colorbar on the right side instead of the actual values.
I tried to do this with a heatmap, but the data plot was worse that way due to the large gaps between samples.
Thanks for any help!
Upvotes: 1
Views: 1001
Reputation: 49002
You should use plt.scatter
. The hue
parameter in lmplot
only accepts categorical variables.
Upvotes: 3