How to get rid of 'Warning: overflow encountered in short_scalars'

I sometimes get the error

Warning: overflow encountered in short_scalars

when I'm trying to plot certain data. When I searched a bit what I
could find on this problem, I came across

At least in one case where I had the problem, the claim there that it
has to do with too many values being to close to the highest value
possible in Int16 is right for my data. However, I'm not sure if it
always applies when that error occurs.

Can anybody tell me how to work around this and still get valid plots
with this kind of data?