-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
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 ?
Metadata
Metadata
Assignees
Labels
No labels