Is there any way to improve the speed of plotting 1000 lines at once? I am drawing an animation of a wireframe building using some external data which takes 0.05 seconds to acquire. In the following function, X and Y are set up to have coordinate pairs for 1000 lines, X and Y are type 2x1000 double. The issue is that I'm getting like 3fps. Was hoping to get something like 10-15fps. I tried doing a scatter plot of just the coordinates to see how that would work and scatter is much faster, getting like 25fps but then I just have coordinate points. Need to have the connecting lines to show the building.
Just FYI, I also tried using 'plot' instead of 'line' and I get the same response.
line (X,Y,'LineWidth',[1.0],'Color',[0 0 1]);