Graphic with minimum, maximum, average and standard deviation

I need to create a graph with the results for some runs - for each of these runs I have a minimum output, maximum output, average output and standard deviation. This means that I will need 16 boxes with inscriptions.

examples I came across a graph of the numerical distribution, but in my case this is not possible.

Is there a way to do this in Python (Matplotlib) / R?

+6
source share
1 answer

The answer given in the @Roland section above is important: the field diagram shows fundamentally different quantities, and if you make a similar plot using the quantity you have, this can confuse users. I could present this information using folding error charts. For instance:

import matplotlib.pyplot as plt import numpy as np # construct some data like what you have: x = np.random.randn(100, 8) mins = x.min(0) maxes = x.max(0) means = x.mean(0) std = x.std(0) # create stacked errorbars: plt.errorbar(np.arange(8), means, std, fmt='ok', lw=3) plt.errorbar(np.arange(8), means, [means - mins, maxes - means], fmt='.k', ecolor='gray', lw=1) plt.xlim(-1, 8) 

enter image description here

+12
source

All Articles