예제 #1
0
     continue
 xv.update(dict(limprc = [0, 100]))
 yv.update(dict(limprc = [0, 100]))
 xv.update(updates[xk])
 yv.update(updates[yk])
 C.plot_zbins(
     debug = debug,
     x = xv['v'],
     y = yv['v'],
     xlim = xv['lim'],
     ylim = yv['lim'],
     xlabel = xv['label'],
     ylabel = yv['label'],
     running_stats = True,
     rs_percentiles = True,
     rs_errorbar = False,
     rs_gaussian_smooth = True,
     rs_gs_fwhm = 4.,
     kwargs_figure = dict(figsize = (10, 8), dpi = 100),
     kwargs_scatter = dict(marker = 'o', s = 10, edgecolor = 'none', alpha = 0.5, label = ''),
     kwargs_plot_rs = dict(c = 'k', lw = 2, label = 'Median (run. stats)'),
     kwargs_suptitle = dict(fontsize = 12),
     kwargs_legend = dict(fontsize = 12, loc = 'best'),
     suptitle = r'NGals:%d  tSF:%.2f Myr  $x_Y$(min):%.0f%%  $\tau_V^\star$(min):%.2f  $\tau_V^{neb}$(min):%.2f  $\epsilon\tau_V^{neb}$(max):%.2f' % (H.N_gals, (tSF / 1e6), H.xOkMin * 100., H.tauVOkMin, H.tauVNebOkMin, H.tauVNebErrMax),
     filename = filename,
 )
  
 mask = []
 ba = H.reply_arr_by_radius(H.ba_GAL__g)
 balimsup = [0.39, 0.63, 1.]
 titles = [ 
예제 #2
0
     )
 kwargs_figure = dict(figsize = (10, 8), dpi = 100)
 f = plt.figure(**kwargs_figure)
 ax = f.gca()
 plot_text_ax(ax, txt_y, 0.99, 0.01, 14, 'bottom', 'right', color = 'k')
 kw = C.plot_zbins(
     return_kwargs = True,
     f = f,
     ax = ax,
     debug = debug,
     x = xv['v'],
     y = R,
     xlim = xv['lim'],
     #ylim = yv['lim'],
     ylimprc = [0, 100],
     xlabel = xv['label'],
     ylabel = r'Residual %s' % yname,
     running_stats = True,
     rs_percentiles = True,
     rs_errorbar = False,
     rs_gaussian_smooth = True,
     rs_gs_fwhm = 4.,
     spearmanr = True,
     kwargs_scatter = dict(marker = 'o', s = 10, edgecolor = 'none', alpha = 0.5, label = ''),
     kwargs_plot_rs = dict(c = 'k', lw = 2, label = 'Median (run. stats)'),
     kwargs_legend = dict(fontsize = 12, loc = 'best'),
 )
 kwargs_suptitle = dict(fontsize = 12)
 suptitle = r'NGals:%d  tSF:%.2f Myr  $x_Y$(min):%.0f%%  $\tau_V^\star$(min):%.2f  $\tau_V^{neb}$(min):%.2f  $\epsilon\tau_V^{neb}$(max):%.2f' % (H.N_gals, (tSF / 1e6), H.xOkMin * 100., H.tauVOkMin, H.tauVNebOkMin, H.tauVNebErrMax)
 f.suptitle(suptitle, **kwargs_suptitle)
 filename = '%s_%.2fMyr.png' % (fnamepref, tSF / 1e6)
 C.debug_var(debug, filename = filename)
예제 #3
0
        for line in l.linesbpt:
            ax.plot(l.x[line], l.y[line], label = line)
        ax.text(-0.7, -0.5, 'SF')
        ax.text(-0.3, 0.6, 'Seyfert')
        ax.text(0.15, -0.5, 'LINER')
        C.plot_zbins(
            debug = True,
            cb = False,
            write_N = True,
            zmask = None,
            f = f,
            ax = ax,
            x = logN2Ha__g, 
            y = logO3Hb__g, 
            z = H.zone_dist_HLR__g, 
            zlim = zlim,
            xlim = (-1.5, 0.5),
            ylim = (-1.5, 1.0),
            x_major_locator = 1.,
            x_minor_locator = 0.2,
            y_major_locator = 1.,
            y_minor_locator = 0.2,
            kwargs_scatter = dict(marker = 'o', s = 10, edgecolor = 'none', alpha = 0.45, label = ''),
            xlabel = r'$\log [NII]/H\alpha$',
            ylabel = r'$\log [OIII]/H\beta$',
            zlabel = r'R (HLR)',
        )

        ax = plt.subplot2grid(grid_shape, loc = (0, 1))
        ax.set_axis_on()
        for line in l.linesbpt:
            ax.plot(l.x[line], l.y[line], label = line)
예제 #4
0
 f.set_size_inches(15,8) 
 kw = C.plot_zbins(
     return_kwargs = True,
     f = f,
     ax = axArr[0],
     debug = True,
     x = np.ma.log10(x1),
     y = np.ma.log10(y1),
     xlabel = x1label,
     ylabel = y1label,
     #EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
     # z = H.zone_dist_HLR__g,
     # zmask = None,
     # zlim = [RNuc, 3],
     # zlabel = r'R (HLR)',
     # cb = None,
     #EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
     xlim = [-5, 1],
     ylim = [-5, 1],
     x_major_locator = 1.,
     x_minor_locator = 0.2,
     y_major_locator = 1.,
     y_minor_locator = 0.2,
     ols = True,
     spearmanr = True,
     kwargs_figure = dict(figsize = (10, 8), dpi = 100),
     kwargs_scatter = dict(marker = 'o', s = 10, edgecolor = 'none', alpha = 0.3, label = ''),
     kwargs_ols = dict(c = 'k', pos_x = 0.98, pos_y = 0.01, fs = 12, rms = True, text = True),
     kwargs_ols_plot = dict(c = 'r', ls = '-', lw = 2, label = 'OLS'),
 )
 kw['ax'].plot(kw['ax'].get_xlim(), kw['ax'].get_xlim(), ls = '--', label = '', c = 'k')