1

I'm trying to get my seaborn plot to look something like this: enter image description here

If I use lmplot with the z-axis for the hue, I get this: enter image description here

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!

Jordan
  • 1,003
  • 2
  • 12
  • 24

1 Answers1

3

You should use plt.scatter. The hue parameter in lmplot only accepts categorical variables.

mwaskom
  • 46,693
  • 16
  • 125
  • 127
  • Link to a way to do this [here](http://stackoverflow.com/questions/6063876/matplotlib-colorbar-for-scatter). – Jordan May 22 '16 at 03:02