首页 > 编程知识 正文

python运行程序后不显示图像,python读取表格画散点图

时间:2023-05-06 07:49:17 阅读:9196 作者:4109

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 )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。