xtick_location = df.index.tolist()[::12] xtick_labels = [x[-4:] for x in df.date.tolist()[::12]] plt.xticks(ticks=xtick_location, labels=xtick_labels, rotation=0, fontsize=12, horizontalalignment='center', alpha=.7) plt.yticks(fontsize=12, alpha=.7) plt.title("Air Passe...
sample_labels: Optional[Sequence[str]] = None, cluster_labels: Optional[Sequence[str]] = None, colormap: matplotlib.colors.Colormap = None, x_label: Optional[str] = None, y_label: Optional[str] = None, @@ -377,8 +382,7 @@ def __init__( if colormap is None: colormap = plt...
"_ = cbar.ax.set_xticklabels(ticklabels, size=10, rotation=45, ha='right')\n", "plt.savefig(f\"{output_path}/change_dates.png\", dpi=300, transparent='true')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Save the change dates as a GeoTiff (change_...
importmatplotlib.pyplotaspltimportnumpyasnp fig, ax = plt.subplots(figsize=(12,6)) x = np.arange(0,10,0.1) y = np.sin(x) z = np.cos(x)# Set general font sizeplt.rcParams['font.size'] ='16'# Set tick font sizeforlabelin(ax.get_xticklabels() + ax.get_yticklabels()): la...