Python Forum
Plot multiple csv into one graph problem with visualize
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plot multiple csv into one graph problem with visualize
#1
Hi everyone,
I really need an help, I created a small code to read 27 file .csv together and plot in the same graph.
In the csv files there is the time( x-axis) and 2 temperatures(y-axis), I don't understand why I get this kind of terrible graph.

import pandas as pd
from glob import glob
import matplotlib.pyplot as plt
import plotly.graph_objects as go



numFiles = 27 #Number of CSV files in your directory
separator = "," #Character that separates each value inside file
fExtension = ".csv" #Extension of the file storing the data


dataframe = sorted(glob('test*.csv'))


pd.concat((pd.read_csv(file).assign(filename = file)
           for file in dataframe), ignore_index  = True)





plt.plot(list(str(dataframe)) )
plt.show()
 
In this Url link there is the plot

https://ibb.co/dkn3jB1
Reply


Messages In This Thread
Plot multiple csv into one graph problem with visualize - by linkxxx86 - Oct-12-2019, 01:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I am getting a valueError. And not sure why? My goal is to visualize the correlation ReadytoCode 0 467 Dec-11-2023, 05:33 AM
Last Post: ReadytoCode
  Plot multiple 2D Curves in 3D stc 5 945 Jun-11-2023, 05:48 PM
Last Post: snippsat
  first time use plot - I get empty graph korenron 6 2,074 Feb-04-2023, 02:14 PM
Last Post: deanhystad
  Trying to loop through code to plot seaborn line plots across multiple subplots eyavuz21 0 1,657 Dec-05-2022, 10:46 AM
Last Post: eyavuz21
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 1,990 Sep-01-2021, 06:26 AM
Last Post: uvw
  Unable to plot the graph as needed drunkenneo 1 6,344 May-26-2021, 11:04 AM
Last Post: cygnus_X1
  Multiple Plotting in Same PLot quest 0 1,798 Apr-18-2021, 10:29 AM
Last Post: quest
  How to plot 3D graph of non numerical value? Gevni 0 2,213 Mar-05-2021, 02:50 PM
Last Post: Gevni
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,575 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  Plot Graph quest_ 2 2,116 Jan-18-2021, 07:58 PM
Last Post: quest_

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020