点pyplot的上限 [英] Upper limit of points pyplot

查看:95
本文介绍了点pyplot的上限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里只是一个好奇的乔治.

Just being a curious George here.

但我正在处理 2.79 亿 个数据点 (x,y) 并且想知道 pyplot 是否可以散布这样的数字?

But I'm handling 279 million data points (x,y) and am wondering if pyplot can scatter such a number?

谢谢.

推荐答案

如果您想为普通高清屏幕上的每个点着色,这将导致大约 200 万个点.绘制超过 100 倍的数据似乎没有意义.除此之外,这肯定是可用内存和计算时间的问题.

If you want to colorize each point on a usual HD screen that would result in ~2 million points. It does not seem to make sense to plot more than 100 times that much data. Apart this is surely a question of available memory and computing time.

所以我进行了实验.15分钟后,绘图窗口出现在屏幕上,完全是黑色的.再过15分钟后,将绘图绘制在屏幕上.总共做30分钟.这是在具有 16 GB RAM 的 3GHz 计算机上使用 python 64 位完成的.

So I ran the experiment. After 15 minutes the plotting window appeared on screen, being completely black. After another 15 minutes the plot was drawn on screen. Makes 30 minutes in total. This was done using python 64bit on a 3GHz computer with 16 GB RAM.

请注意,我对点的着色没有不同,这当然仍会增加绘制时间.

Note that I did not colorize the points differently, which would of course still increase draw time.

所以答案是:是的,这是可能的....但可能没有用,还有更有效的方法可以在屏幕上绘制点.

So the answer is: Yes, it's possible. ...but probably not useful and there are much more efficient ways to draw points on a screen.

这篇关于点pyplot的上限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆