I'm trying to get just one decimal place for the legend. The data which the plot is based on (w_field) has values with 8 decimal places.
w_field = np.genfromtxt('w_field.dat')
CV = plt.contour(w_field)
x,Vel = CV.legend_elements()
plt.legend(x,Vel, title= 'Vertical velocity (m/s)', fontsize= 10, bbox_to_anchor=(1.05, 1), loc='upper left')
plt.xlabel('Nx')
plt.ylabel('Ny')

