简体   繁体   中英

multiple boxplot in subplots in python

I have 18 individual of np.arrays, each containing 30 numbers with similar range (share = True).

I want to create boxplots for all 18 arrays in a subplot of 1 row, 4 columns. Each subplot will contain few sets of arrays.

How do I do this?

when I try it, it looks like this: 在此处输入图像描述

This was my trying to put them in one, the red scratch was what I want it to look like在此处输入图像描述

I get this solved!!

Since it's only 1 row,

I should use only

-axes(num)

instead of

-axes(num,0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM