Hi all,

I have the following array:

x = np.array([1920.5508, 513.4158, 1071.6049, 1412.2137, 1378.3534,

561.4679])

when I put it into a boxplot it shows a boxplot with values that I would

get from np.percentile:

np.percentile(x,[0,25,50,75,100],interpolation='linear')

array([ 513.4158 , 689.00215 , 1224.97915 , 1403.748625, 1920.5508 ])

I would like for the 1st and 3rd quartile to be calculated with a different

interpolation and then display these different values in the boxplot, i.e.

np.percentile(x,25,interpolation='lower')

561.4679

np.percentile(x,75,interpolation='higher')

1412.2137

Does anyone know if matplotlib can set which type of interpolation to use

when it's calculating the percentiles?

Thanks for your help!

## ···

--

Matthew Bradley

-------------- next part --------------

An HTML attachment was scrubbed...

URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190122/523e7293/attachment.html>