# Plotly express plot differently as before

**URL:** <https://community.plotly.com/t/plotly-express-plot-differently-as-before/42553>\
**Category:** 📊 Plotly Python\
**Created:** [July 16, 2020, 11:40am UTC](https://community.plotly.com/t/plotly-express-plot-differently-as-before/42553 "2020-07-16T11:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pitS](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pitS](https://community.plotly.com/u/pitS)\
**Post date:** [July 16, 2020, 11:40am UTC](https://community.plotly.com/t/plotly-express-plot-differently-as-before/42553/1 "2020-07-16T11:40:21Z")

</div>

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’)

 ![Plot1](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/5/58c945add930339bc52610a809e6036cd56aa621.png)

# 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’)

 ![Plot2](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/9c4a2df21155da556afe83c285f040e55490a114.png)

* * *

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?

---

<div class="post-metadata">

**Author:** ![nicolaskruchten](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/nicolaskruchten/32/7018_2.png) [@nicolaskruchten](https://community.plotly.com/u/nicolaskruchten)\
**Post date:** [July 16, 2020, 12:20pm UTC](https://community.plotly.com/t/plotly-express-plot-differently-as-before/42553/2 "2020-07-16T12:20:14Z")

</div>

I suspect you’ve somehow downgraded `plotly` to a version below 4.8, or you’re otherwise running this code in an environment with a version below 4.8 🙂

---

<div class="post-metadata">

**Author:** ![pitS](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pitS](https://community.plotly.com/u/pitS)\
**Post date:** [July 16, 2020, 12:37pm UTC](https://community.plotly.com/t/plotly-express-plot-differently-as-before/42553/3 "2020-07-16T12:37:49Z")

</div>

you are right. The installation of pycaret downgraded the version to 4.4.  
After updating it works OK.  
Thank you!
