Some of those seem kinda strange. Though I suppose there are 1.36 gazillion reasons why you'd get distortion like that.
I assume most utilities require/follow IEEE standards on flicker, harmonics, THD, etc., which I recall are in the 3-5% range? Customers' equipment must meet that before connecting (for what that's worth), which presumably means it should be below that in normal operation.
In any case, if you suspect it's a utility-caused problem (or maybe nearby customers causing it), you can probably look online at their power quality specs and see if what you're measuring is outside the range. It could be that they have a problem they're unaware of and they'll investigate.
My first thought on those flat-top waveforms is maybe there's some system overvoltage that's saturating a transformer and causing those harmonics and the flat top. Seems a stretch though. Or some industrial customer nearby with some nasty loads. Or maybe something on your side?
Just keep in mind that IEEE has those requirements for a reason, and those harmonics and flicker can cause problems if they're too big. Some (most?) utilities even have Power Quality groups to investigate stuff like that.
EDIT: Oh, wait... you mentioned solar panels. Geesh, never mind. Who the hell knows what's going on in those proprietary inverter controls.