Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am trying to plot 100,000 data points and it takes too long to draw the graph. What is wrong with the software and what can I do to make it faster?

0
Posted

I am trying to plot 100,000 data points and it takes too long to draw the graph. What is wrong with the software and what can I do to make it faster?

0

The software runs as fast as we can make it. We do not have any hidden switches that will speed up the software. What you need to do is to step back and think about the best way to display your data. A fundamental issue that many programmers fail to consider is the relationship between the resolution of the rasterized screen image of the plot and the resolution of the data. A typical mobil device chart image will have 300-600 pixels as the horizontal resolution of the plotting area. This would imply that in the 100K data point example above, every horizontal pixel would represent 1.6K to 3.3K data points. Obviously this is a terrible mismatch. In fact it is a bad match for datasets that have more than a couple of thousands points. So what you do is compress the data before it is displayed. Take the 100K data points and compress them down to 500 data points. The data compression can take several forms. You can take an average of every N points. The resulting dataset will be reduced by a

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123