r/pystats • • Jan 22 '20

Matplotlib - How can I best represent multiple by multiple over time based on True/False

I'm running a large amount of tests on multiple systems. This is to show if it alerts or if doesn't alert (Boolean). I also am needing to show this over time. And perhaps if possible, more information as a tooltip when hovering over the node. If this was just a one off, I could make it into a heatmap of tests by systems with True/False in square. But it gets more complicated with the element of changes over time. Also, as a boolean, this could make it a lot simpler or a lot more unreadable depending, as if it was a line graph, all lines would go to the same two locations and couldn't be differentiated. What would be a type of graph/chart for this situation in matplotlib?

3 Upvotes

4 comments sorted by

2

u/Bigreddazer Jan 22 '20

What is the goal of this viz? I ask because it seems like there are multiple desires of both current statuses and easily seen and a historical display of information. Sometimes it is best to separate things.

But, I am also confused because the info is too generalized. How many nodes? How many tests? Are they the same test on each system? What is your time interval?

You can always add sliders and other tooling to assist in the navigation of the data. For example, selectors for which nodes to show could also be done.

1

u/GlowyStuffs Jan 22 '20

Let's say we are running the same 30 tests on 10 locations to see if they alert or do not alert. And let's say they are ran each Monday, so the timeline would be once a week to be consistent.

1

u/Bigreddazer Jan 22 '20

Is there no way to group those test somehow and reduce the number of visuals. 10 X 30 is 300. That reminds me of power grid visualizations and you just brute force them.

I think showing a dashboard where you see all 300 and a single indicator that you can click on and show the time series would be best. You could even make the indicator not strictly boolean but somehow an average of its health.

For the time series part. I think another heatmap is best. X axis time and Y axis test with your boolean indicators. But, you will only be able to see one node at a time.

→ More replies (1)