python - UnboundLocalError in ggplot 0.5 -



python - UnboundLocalError in ggplot 0.5 -

i have next code

p = ggplot(aes(x='dht temp',y='temp3'), data=data) p + geom_point(alpha=0.1, size=10) + scale_x_continuous(limits=(20,30)) + scale_y_continuous(limits=(0,170)) + theme_bw()\ + geom_abline(intercept=20)

and next error:

<repr(<ggplot.ggplot.ggplot @ 0x607a3d0>) failed: unboundlocalerror: local variable 'x' referenced before assignment>

some sample data

hih dhthum dhttemp temp1 temp3 0 350 67.7 22.7 328 148 1 356 67.9 22.7 328 149 2 365 67.8 22.7 328 148 3 349 67.9 22.6 327 148 4 348 68.0 22.6 328 149

this bug in ggplot has been fixed in version 0.5.8.

python pandas python-ggplot

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -