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
importpandasaspdimportmatplotlib.pyplotaspltplt.close("all")
importnumpyasnpdf=pd.read_csv(r"p:\11210325-005-kenmerkende-waarden\work\measurements_wl_18700101_20240101\data_amount_ts.csv")
df=df.set_index("Groeperingsperiode")
df[df==0] =np.nandf_relative=df.div(df.median(axis=1), axis=0)
df_relative=df_relative.clip(upper=2)
# df = df_relative # this is useful for ts, because the frequency was changed from hourly to 10-minutefig, ax=plt.subplots(figsize=(14,8))
pc=ax.pcolormesh(df.columns, df.index, df.values) # , cmap="turbo")fig.colorbar(pc, ax=ax)
ax.tick_params(axis='x', labelrotation=90)
ax.grid(zorder=-5)
fig.tight_layout()
The text was updated successfully, but these errors were encountered:
Example code:
The text was updated successfully, but these errors were encountered: