Python Forum
Graphing process execution time - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Graphing process execution time (/thread-6298.html)



Graphing process execution time - Temennigru - Nov-14-2017

I have a bunch of process execution times that I'd like to graph (starting and ending time).
Something like this:
[Image: Untitled2_zpssoqjfaso.png]

What tool can I use for this and what functionality would I have to use for making the rectangles, placing words in them and showing the starting time?


RE: Graphing process execution time - wavic - Nov-15-2017

Mathplotlib


RE: Graphing process execution time - Temennigru - Nov-15-2017

(Nov-15-2017, 06:30 AM)wavic Wrote: Mathplotlib

Matplotlib is quite a large library. Do you know any specific sections that might help me?


RE: Graphing process execution time - wavic - Nov-15-2017

I don't know since I have never used it. I just know its capabilities. You have two-dimensional data. Timestamp and process ID/name. So the basic usage of the library should cover your needs. You can start from here and here. Also, there is a huge number of examples.


RE: Graphing process execution time - Temennigru - Nov-15-2017

FYI I lost patience, took this thread https://stackoverflow.com/questions/41484692/matplotlib-change-length-in-fancytextbox
and wrote my own code based on it to calculate positions.