icreatedaverysimplescatterplotusingpylab。
pylab.Scatter(enginesize,fuelMile ) )
pylab.show (
therestoftheprogramisn ' tworthposting,because it ' sthatlinethat ' sgivingmetheproblem.when ichange ' scatter ' to ' plot ' buteachpointispartofalineandthatmakesthewholethingsascribblymess.ijustwantpoints,not a line,butigettthishugerrrormesssagethagethathagethathate
file ' c :python 26libsite-packagesnumpycorefrom numeric.py ',line 1643,in amin
返回管理(axis,out ) ) )。
I bet engineSize,fuelMile are stings,try printing them,if that is the case,youhavetoconvertthemtofloatbeforepassingthemasargumene
浮动=浮动(strval )