The existing plots in Plotly express do not work as before.
Here is my code, that worked well so far :
Plot1 - Time Serie1, Time Serie2 and so on…
df = pd.read_csv(‘G:/time_series.csv’)
df_long=pd.melt(df , id_vars=[‘ID’])
fig = px.line(df_long, y=‘value’, color=‘variable’, render_mode=“SVG”, labels={“value”: “Thickness [nm]”})
plotly.offline.plot(fig, filename=‘G:/time_series_Plot1.html’)
Plot2 - multiple time series plot
df = pd.read_csv(‘G:/time_series.csv’)
fig = px.line(df, x=‘ID’, y= df.columns, color=‘variable’, render_mode=“SVG”, labels={“value”: “Thickness [nm]”, “ID”: “Time[s]”})
plotly.offline.plot(fig, filename=‘G:/time_series_Plot2.html’)
Today i found out that the code performs differently:
- Originally Plot1 performs now as Plot 2 (instead Time Series 1,2,3… shows multiple series plot).
- Originally Plot2 does not work at all and got the following error: ValueError:
All arguments should have the same length. The length of argument
y
is 27, whereas the length of previous arguments [‘ID’] is 8270
How can i perform a plot, as shown on the Plot1?