(ax, field, meta, skip_values=[], fmt="{:.2g}")
| 299 | cmap=None) |
| 300 | |
| 301 | def PlotFieldText(ax, field, meta, skip_values=[], fmt="{:.2g}"): |
| 302 | for ix, iy in np.ndindex(field.shape): |
| 303 | value = field[ix, iy] |
| 304 | if value in skip_values: |
| 305 | continue |
| 306 | ax.text( |
| 307 | meta.x1c[ix], |
| 308 | meta.y1c[iy], |
| 309 | fmt.format(value), |
| 310 | horizontalalignment='center', |
| 311 | verticalalignment='center', |
| 312 | ) |
| 313 | |
| 314 | |
| 315 | # u: 2d numpy array |
nothing calls this directly
no outgoing calls
no test coverage detected