I'm trying to plot a contour map using plotly python, but it's not working i getting a blank plot.
Here is my code,
import plotly.graph_objects as go
import pandas as pd
import numpy as np
df = pd.read_csv('./temperature_2d.csv')
x = np.array(df.lon)
y = np.array(df.lat)
z = np.array(df.value).reshape(11, 87)
fig = go.Figure(data =
go.Contour(
z=z,
x=x,
y=y,
colorscale = 'Hot',
contours_coloring='heatmap'
))
fig.show()
Here is the data file that i used to plot temperature_2d.csv
I'm completely new to things like ploting and all it will be really helpful if someone could explain what's wrong here and how to do this correctly