Пример #1
0
y_lim_helix = (0, 100)

# fig = plt.figure(figsize=(20, 12))
# fig.subplots_adjust(left=0.08, bottom=0.2, right=0.98, top=0.92)

##################################Length#################################################################

length_b1 = morpho.proms_1_length
length_b2 = morpho.proms_2_length
length_b3 = morpho.proms_3_length

sem_length_b1 = [np.zeros(len(morpho.errors_1_length)), morpho.errors_1_length]
sem_length_b2 = [np.zeros(len(morpho.errors_2_length)), morpho.errors_2_length]
sem_length_b3 = [np.zeros(len(morpho.errors_3_length)), morpho.errors_3_length]

ax_1 = graficar.create_subplots(2, 2, 1)

batch1_length = ax_1.bar(x - width,
                         length_b1,
                         width,
                         yerr=sem_length_b1,
                         label='B1',
                         error_kw=error_kw,
                         fill=False,
                         hatch='///',
                         linewidth=linewidth)
batch2_length = ax_1.bar(x,
                         length_b2,
                         width,
                         yerr=sem_length_b2,
                         label='B2',
Пример #2
0
# pmax_s4 = np.array(list(pmax['S4']))
# pmax_s4_mean = np.mean(pmax_s4)
# pmax_s4_sem = sem(pmax_s4)

# pmax_s5 = np.array(list(pmax['S5']))
# pmax_s5_mean = np.mean(pmax_s5)
# pmax_s5_sem = sem(pmax_s5)

#Lote 1
pmax_b1 = pmax.iloc[0]
pmax_b2 = np.array(list(pmax.iloc[1]))
pmax_b3 = np.array(list(pmax.iloc[2]))

#Crear lienzo del gráfico
fig = lienzo.crear_figura(left=0.08, bottom=0.2, right=0.98, top=0.92)
ax_1 = graficar.create_subplots(1, 1, 1)

##Gráficos
x = np.arange(len(treatments))

batch1 = ax_1.bar(x - barwidth,
                  pmax_b1,
                  barwidth,
                  label='B1',
                  color=batch1_color,
                  fill=False,
                  hatch='///',
                  alpha=1,
                  linewidth=3)
batch2 = ax_1.bar(x,
                  pmax_b2,