You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a fair bit of overlap between the code of _draw_2d_from_points and _draw_2d_from_bounds, so I wonder if it's worth doing some rationalisation while addressing this.
The text was updated successfully, but these errors were encountered:
This was raised via Met Office Yammer. Given a 2d cube with a time dimension, pcolormesh does not recognise the time coordinate as such. Example:
contourf
produces this:For the
pcolormesh
plot, matplotlib thows an error about non datetime values. Without theset_major_formatter
call, we get this:contourf
uses _draw_2d_from_points which has specific handling for time coordinates.pcolormesh
uses _draw_2d_from_bounds, which doesn't have this handling (as far as I can see). So possibly we just need to add thatif
loop to make it consistent (I haven't tried).There seems to be a fair bit of overlap between the code of
_draw_2d_from_points
and_draw_2d_from_bounds
, so I wonder if it's worth doing some rationalisation while addressing this.The text was updated successfully, but these errors were encountered: