I use matplotlib to scatter the graph of a 3D dot matrix. I am using the following code:
import pylab as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np my_data = np.random.rand(6500,3)
It works, so it opens a window where I can see my glasses.
However, if I try to rotate the graph with the mouse (by clicking and dragging it), it rotates REALLY slow.
I think that 6500 points are not so much for such a slow and slow rotation, so I wonder if there is any preset to speed it up.
Note. I tried using Matlab, and I can rotate the way the larger scatter is without any lag, so this is not a computer limitation.
Can someone run this code and see if it experiences slow rotation?
EDIT . Using the system monitor, I see that when turning points, only one processor is used, so matplotlib does not parallelize the process.
My computer specifications:
- Intel (R) Core (TM) i5-3550 CPU @ 3.30 GHz
- Graphics Card: Xeon E3-1200 v2 / 3rd Gen Core Graphics Controller.
- Memory: 10 GB RAM
- HDD: Samsung SSD 500 GB
Ubuntu 16.10 works
source share