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
coord_pairs = to_np(w_cross.coords["xy_loc"])
x_ticks = np.arange(coord_pairs.shape[0])
x_labels = [pair.latlon_str() for pair in to_np(coord_pairs)]
thin = [int(x/6.) for x in x_ticks.shape] # Only keeping ~5 horizontal ticks
ax.set_xticks(x_ticks[1::thin[0]])
ax.set_xticklabels(x_labels[::thin[0]], rotation=45, fontsize=8)
I tried this, but it puts both lat and lon on x-axis. How can I put only lon on x-axis ?
The text was updated successfully, but these errors were encountered:
coord_pairs = to_np(w_cross.coords["xy_loc"])
x_ticks = np.arange(coord_pairs.shape[0])
x_labels = [pair.latlon_str() for pair in to_np(coord_pairs)]
thin = [int(x/6.) for x in x_ticks.shape] # Only keeping ~5 horizontal ticks
ax.set_xticks(x_ticks[1::thin[0]])
ax.set_xticklabels(x_labels[::thin[0]], rotation=45, fontsize=8)
I tried this, but it puts both lat and lon on x-axis. How can I put only lon on x-axis ?
The text was updated successfully, but these errors were encountered: