Open shimwell opened 11 months ago
slightly improved
import plotly.graph_objects as go
dx = abs(x_min - x_max)/(data.shape[0]-1)
dy = abs(y_min - y_max)/(data.shape[1]-1)
fig = go.Figure(data =
go.Contour(
z=data,
x0=x_min,
dx=dx,
y0=y_min,
dy=dy,
showscale=colorbar
label
))
fig.show()
some useful code in the openmc_plot app https://github.com/fusion-energy/openmc_plot/blob/ea15db4c667c8c5a0f8819c51ffaeedb1fbf35be/src/openmc_plot/pages/2_%F0%9F%A7%8A_Regular_mesh_plot.py
we can do a plotly contour with this code, perhaps easy to add