Пример #1
0
##pH
arlb3_ph = ph_data['ARL.2'][1:6]
s1b3_ph = ph_data['S1.2'][1:6]
s2b3_ph = ph_data['S2.2'][1:6]
s3b3_ph = ph_data['S3.2'][1:6]
s4b3_ph = ph_data['S4.2'][1:6]
s5b3_ph = ph_data['S5.2'][1:6]

###Graficar

###Gráficos EC

ax_1 = lienzo.crear_grilla(2, 3, 1, fig)

graficar.grafica_dispersion(ax_1, time, arlb1_ec, graficar.color_s0,
                            graficar.marker_s0, None, linewidth, markersize,
                            'S0')
graficar.grafica_dispersion(ax_1, time, s5b1_ec, graficar.color_s1,
                            graficar.marker_s1, None, linewidth, markersize,
                            'S1')
graficar.grafica_dispersion(ax_1, time, s3b1_ec, graficar.color_s2,
                            graficar.marker_s2, None, linewidth, markersize,
                            'S2')
graficar.grafica_dispersion(ax_1, time, s4b1_ec, graficar.color_s3,
                            graficar.marker_s3, None, linewidth, markersize,
                            'S3')
graficar.grafica_dispersion(ax_1, time, s2b1_ec, graficar.color_s4,
                            graficar.marker_s4, None, linewidth, markersize,
                            'S4')
graficar.grafica_dispersion(ax_1, time, s1b1_ec, graficar.color_s5,
                            graficar.marker_s5, None, linewidth, markersize,
carbon_nitrogen = np.array(
    excel.crear_lista(length_data, 'nitrogen_carbon', 0, 15))
carbon_phosphorus = np.array(
    excel.crear_lista(length_data, 'phosphorus_carbon', 0, 15))
carbon_length = np.array(excel.crear_lista(length_data, 'length', 0, 15))
carbon_length_average = np.array(
    excel.crear_lista(length_data, 'length average', 0, 15))

#Grafica

carbon_cmap = mpl.cm.Reds
nitrogen_cmap = mpl.cm.Blues
phosphorus_cmap = mpl.cm.Greens

ax_1 = lienzo.crear_grilla(1, 2, 1, fig)
graficar.grafica_dispersion(ax_1, carbon, carbon_length_average, line_color,
                            marker_dispersion, line_style)
graficar.grafica_scatter(ax_1, carbon, carbon_length, carbon_nitrogen,
                         nitrogen_cmap, marker_scatter, marker_edge,
                         marker_linewidth, marker_size)
cbar1 = fig.colorbar(mpl.cm.ScalarMappable(norm=norm_nitrogen,
                                           cmap=nitrogen_cmap),
                     ax=ax_1,
                     orientation='vertical',
                     label='Nitrogen content (g L$^{-1}$)')
ax_1.set_ylim(ylim)
ax_1.set_xlim(xlim)
ax_1.set_ylabel('Filament length (\u03BCm)')
ax_1.set_xlabel('Total carbon content (g L$^{-1}$)')

ax_2 = lienzo.crear_grilla(1, 2, 2, fig)
graficar.grafica_dispersion(ax_2, carbon, carbon_length_average, line_color,
phosphorus = excel.crear_lista(correlacion_data, 'Total phosphorus', 0, 15)
phosphorus_biomass = excel.crear_lista(correlacion_data, 'Biomass phosphorus', 0, 15)
phosphorus_carbon = excel.crear_lista(correlacion_data, 'Phosphorus_Carbon', 0, 15)
phosphorus_nitrogen = excel.crear_lista(correlacion_data, 'Phosphorus_Nitrogen', 0, 15)

##Grafica 

carbon_cmap = mpl.cm.Reds
nitrogen_cmap = mpl.cm.Blues
phosphorus_cmap = mpl.cm.Greens


ax_1 = lienzo.crear_grilla(3, 2, 1, fig)
graficar.grafica_scatter(ax_1, carbon, carbon_biomass, carbon_nitrogen, nitrogen_cmap, marker, marker_edge, marker_linewidth, marker_size)
cbar1 = fig.colorbar(mpl.cm.ScalarMappable(norm=mpl.colors.Normalize(vmin=0, vmax=7), cmap=nitrogen_cmap), ax=ax_1, orientation='vertical', label='Nitrogen content (g L$^{-1}$)')
graficar.grafica_dispersion(ax_1, carbon, carbon_biomass, line_color, None)
ax_1.set_ylim(ylim)
ax_1.set_ylabel('Total biomass concentration,\nX(mg L$^{-1}$)')
ax_1.set_xlabel('Total carbon content (g L$^{-1}$)')
# ax_1.set_facecolor('#F7F7F7')

ax_2 = lienzo.crear_grilla(3, 2, 2, fig)
graficar.grafica_scatter(ax_2, carbon, carbon_biomass, carbon_phosphorus, phosphorus_cmap, marker, marker_edge, marker_linewidth, marker_size)
cbar2 = fig.colorbar(mpl.cm.ScalarMappable(norm=mpl.colors.Normalize(vmin=0, vmax=0.5), cmap=phosphorus_cmap), ax=ax_2, orientation='vertical', label='Phosphorus content (g L$^{-1}$)')
graficar.grafica_dispersion(ax_2, carbon, carbon_biomass, line_color, None)
ax_2.set_ylim(ylim)
ax_2.set_ylabel('Total biomass concentration,\nX(mg L$^{-1}$)')
ax_2.set_xlabel('Total carbon content (g L$^{-1}$)')


ax_3 = lienzo.crear_grilla(3, 2, 3, fig)
    excel.crear_lista(spiralization_data, 'nitrogen_carbon', 0, 16))
carbon_phosphorus = np.array(
    excel.crear_lista(spiralization_data, 'phosphorus_carbon', 0, 16))
carbon_spiralization = np.array(
    excel.crear_lista(spiralization_data, 'spiralization', 0, 16))
carbon_spiralization_average = np.array(
    excel.crear_lista(spiralization_data, 'spiralization average', 0, 16))

#Grafica

carbon_cmap = mpl.cm.Reds
nitrogen_cmap = mpl.cm.Blues
phosphorus_cmap = mpl.cm.Greens

ax_1 = lienzo.crear_grilla(1, 2, 1, fig)
graficar.grafica_dispersion(ax_1, carbon, carbon_spiralization_average,
                            line_color, marker_dispersion, line_style)
graficar.grafica_scatter(ax_1, carbon, carbon_spiralization, carbon_nitrogen,
                         nitrogen_cmap, marker_scatter, marker_edge,
                         marker_linewidth, marker_size)
cbar1 = fig.colorbar(mpl.cm.ScalarMappable(norm=norm_nitrogen,
                                           cmap=nitrogen_cmap),
                     ax=ax_1,
                     orientation='vertical',
                     label='Nitrogen content (g L$^{-1}$)')
ax_1.set_ylim(ylim)
ax_1.set_xlim(xlim)
ax_1.set_ylabel('Spiralization degree (°)')
ax_1.set_xlabel('Total carbon content (g L$^{-1}$)')

ax_2 = lienzo.crear_grilla(1, 2, 2, fig)
graficar.grafica_dispersion(ax_2, carbon, carbon_spiralization_average,
Пример #5
0
dww_3 = excel.crear_lista(biomass_kinetics_mg, 'ARLB3', 0, 5)
s1_3 = excel.crear_lista(biomass_kinetics_mg, 'S1B3', 0, 5)
s2_3 = excel.crear_lista(biomass_kinetics_mg, 'S2B3', 0, 5)
s3_3 = excel.crear_lista(biomass_kinetics_mg, 'S3B3', 0, 5)
s4_3 = excel.crear_lista(biomass_kinetics_mg, 'S4B3', 0, 5)
s5_3 = excel.crear_lista(biomass_kinetics_mg, 'S5B3', 0, 5)

# #Graficar

#ax_1 = lienzo.crear_grilla(3, 1, 1, fig)
ax_1 = lienzo.crear_grilla(1, 3, 1, fig)

lote1_dww = graficar.grafica_dispersion(ax_1,
                                        x,
                                        dww_1,
                                        color=graficar.color_s0,
                                        marker=graficar.marker_s0,
                                        linewidth=0.8,
                                        markersize=markersize,
                                        label='S0')
lote1_s5 = graficar.grafica_dispersion(ax_1,
                                       x,
                                       s5_1,
                                       color=graficar.color_s1,
                                       marker=graficar.marker_s1,
                                       linewidth=0.8,
                                       markersize=markersize,
                                       label='S1')
lote1_s3 = graficar.grafica_dispersion(ax_1,
                                       x,
                                       s3_1,
                                       color=graficar.color_s2,