Python Forum
How to plot gantt chart using matplotlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to plot gantt chart using matplotlib
#1
Hi,
I have below data,

Date_time	  ID	    Duration Status
2020-07-13 20:13:25	  E1	    0.00     Normal
2020-07-13 20:14:35	  CI_345	1.17     Std
2020-07-17 13:14:56	  HJ_9078	5340.35  Normal
2020-07-18 23:59:59	  EY_20	    2085.05  Error
2020-07-19 00:00:01	  EY_20	    0.03     Warning
I want to plot gantt chart x-axis is Duration, (x-limits Date time), y axis ID, I search on google, but I did not get exactly. Can any please help how to prepare gantt chart suing my data.
Reply
#2
I just searched "matplotlib gantt chart" and found several tutorials and explanations for using the matplotlib plt.broken_barh() function.
You can't expect to find exactly the code you need on the internet. Find something close and try to modify it to suit your application. If you get stuck, then post your attempt (with full code and error tracebacks) and we can try to help...
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read csv file update matplotlib column chart regularly SamLiu 2 1,075 Jan-21-2023, 11:33 PM
Last Post: SamLiu
  Graphic line plot with matplotlib, text file in pytho khadija 2 1,402 Aug-15-2022, 12:00 PM
Last Post: khadija
  plot on the same figure using a for loo with matplotlib drSlump 2 1,722 Oct-13-2021, 07:11 AM
Last Post: drSlump
  matplotlib, no plot when using Figure ajvperth 2 1,693 Oct-12-2021, 02:29 PM
Last Post: ajvperth
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,258 Mar-11-2021, 10:52 AM
Last Post: buran
  xlsxwriter + mplfinance: Plot Stock Chart in Excel Worksheet KMV 1 2,049 Mar-09-2021, 09:44 PM
Last Post: KMV
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,590 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  Python Matplotlib: Create chart for every 4 columns in Excel file JaneTan 2 2,791 Feb-28-2021, 05:02 AM
Last Post: JaneTan
  How to plot intraday data of several days in one plot mistermister 3 2,933 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  Difference Between Figure Axis and Sub Plot Axis in MatplotLib JoeDainton123 2 2,489 Aug-21-2020, 10:17 PM
Last Post: JoeDainton123

Forum Jump:

User Panel Messages

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