BUG/VIS: correctly test for yaxis ticklocs across different versions of MPL

closes #4789