# Speeding up 2D histogram plotting (perhaps via ListDensityPlot)? [on hold]

What would be the fastest way to take an array containing about $n=10^6$ to $10^7$ elements and plot a two-dimensional histogram with A x B bins? ListDensityPlot is taking upwards of half-an-hour. Should I be using compiled code?

-

## put on hold as off-topic by Jason is no longer a postdoc, m_goldberg, MarcoB, Louis, Öskåyesterday

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Jason is no longer a postdoc, m_goldberg, Öskå
If this question can be reworded to fit the rules in the help center, please edit the question.

One way is to use Interpolation on your histogram data and use DensityPlot. Some more useful tips here (possible duplicate?): mathematica.stackexchange.com/a/7556/5 – R. M. Jun 29 '13 at 5:20
Possible duplicate of Plotting large datasets – MarcoB 2 days ago