Interactive plots
Mouse over to see info about the points
Click on a label to include/exclude the line
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
colors = {"232th":"black", "233u":"gray","235u":"blue","238u":"orange","239pu":"green","241pu":"red"}
ma = ["232th","233u","235u","238u","239pu","241pu"]
cols = [4,6,8]
title = ["Thermal","Fast","14 Mev"]
i = 0
for col in cols:
fig = go.Figure()
for nucid in ma:
df=pd.read_csv( nucid + "_chain.txt")
df = df[pd.to_numeric(df[df.columns[col]],errors='coerce').notna()] # remove blanks (unknown intensities)
df[df.columns[col]] = df[df.columns[col]].astype(float)
fig.add_trace(go.Scatter( x=df[df.columns[3]], y=df[df.columns[col]], mode="lines+markers", name= nucid, marker_color=colors[nucid]))
fig.update_layout(title="Chain " + title[i] + " Fission Yields ", height=1000 , xaxis_title="A", yaxis_title="Yield [%]")
fig.show()
i = i+1