Plotting with ‘plotly.express’ is upside down. With xarray, it is plotting correctly. Is the problem with the file? I appreciate your help.
nc file here: BR-DWGD/exemplos/test_plotly.nc at main · AlexandreCandidoXavier/BR-DWGD · GitHub
import plotly.express as px
import xarray as xr
import plotly.io as pio
pio.renderers.default = "browser"
tmax = xr.open_mfdataset("test_plotly.nc")
# work correct
tmax['Tmax'].plot()
# does not work correct
fig = px.imshow(tmax['Tmax'], aspect='equal')
fig.show()
Results: