Anthony Smith's IDL routines

Galaxies etc.

single page | use frames     summary     class     fields     routine details     file attributes

gals/

ajs_number_counts_plot.pro

This procedure produces a plot of the number counts.

Routines

result = ajs_number_counts_plot_xrange(bincentres=bincentres, logflux=logflux)

Choose and set xrange

result = ajs_number_counts_plot_yrange(ngals=ngals, input_logngals=input_logngals, plot_logngals=plot_logngals, err_ngals=err_ngals, pos_err_ngals=pos_err_ngals, neg_err_ngals=neg_err_ngals)

Choose and set yrange

ajs_number_counts_plot_legend, legend_text=legend_text, legend_pos=legend_pos, arg_legend_pos=arg_legend_pos, color=color, psym=psym, _REF_EXTRA=_REF_EXTRA

Add legend text to the plot

ajs_number_counts_plot [, bincentres=bincentres] [, ngals=ngals] [, err_ngals=err_ngals] [, neg_err_ngals=neg_err_ngals] [, pos_err_ngals=pos_err_ngals] [, mag=mag] [, area=area] [, nbins=nbins] [, overplot=overplot] [, plotfile=plotfile] [, show_plot=show_plot] [, open=open] [, close=close] [, xrange=xrange] [, yrange=yrange] [, input_logngals=input_logngals] [, plot_logngals=plot_logngals] [, logflux=logflux] [, ylog=ylog] [, psym=psym] [, symcat_thick=symcat_thick] [, color=color] [, xstyle=xstyle] [, ystyle=ystyle] [, title=title] [, xtitle=xtitle] [, ytitle=ytitle] [, legend_pos=fltarr(2)] [, legend_text=legend_text] [, euclid=euclid] [, _REF_EXTRA=_REF_EXTRA]

This procedure produces a plot of the number counts.

Routine details

topajs_number_counts_plot_xrange

result = ajs_number_counts_plot_xrange(bincentres=bincentres, logflux=logflux)

Choose and set xrange

Keywords

bincentres
logflux

topajs_number_counts_plot_yrange

result = ajs_number_counts_plot_yrange(ngals=ngals, input_logngals=input_logngals, plot_logngals=plot_logngals, err_ngals=err_ngals, pos_err_ngals=pos_err_ngals, neg_err_ngals=neg_err_ngals)

Choose and set yrange

Keywords

ngals
input_logngals
plot_logngals
err_ngals
pos_err_ngals
neg_err_ngals

topajs_number_counts_plot_legend

ajs_number_counts_plot_legend, legend_text=legend_text, legend_pos=legend_pos, arg_legend_pos=arg_legend_pos, color=color, psym=psym, _REF_EXTRA=_REF_EXTRA

Add legend text to the plot

Keywords

legend_text
legend_pos
arg_legend_pos
color
psym
_REF_EXTRA

topajs_number_counts_plot

ajs_number_counts_plot [, bincentres=bincentres] [, ngals=ngals] [, err_ngals=err_ngals] [, neg_err_ngals=neg_err_ngals] [, pos_err_ngals=pos_err_ngals] [, mag=mag] [, area=area] [, nbins=nbins] [, overplot=overplot] [, plotfile=plotfile] [, show_plot=show_plot] [, open=open] [, close=close] [, xrange=xrange] [, yrange=yrange] [, input_logngals=input_logngals] [, plot_logngals=plot_logngals] [, logflux=logflux] [, ylog=ylog] [, psym=psym] [, symcat_thick=symcat_thick] [, color=color] [, xstyle=xstyle] [, ystyle=ystyle] [, title=title] [, xtitle=xtitle] [, ytitle=ytitle] [, legend_pos=fltarr(2)] [, legend_text=legend_text] [, euclid=euclid] [, _REF_EXTRA=_REF_EXTRA]

This procedure produces a plot of the number counts.

Keywords

bincentres in optional

x-position (e.g., magnitude, flux, log-flux)

ngals in optional

Number density, per square degree, per unit (x_unit)

err_ngals in optional

Uncertainty in ngals

neg_err_ngals in optional

Negative error in ngals, for asymmetric

pos_err_ngals in optional

Positive error in ngals, for asymmetric

mag in optional

Array of magnitudes (or log(flux) with /logflux)

area in optional

Area in square degrees (for use with mag)

nbins in optional

Number of bins for mag (use with xrange or bincentres)

overplot in optional

Set /overplot to overplot

plotfile in optional

EPS file name

show_plot in optional

Set /show_plot to open the EPS file for viewing

open in optional

Set /open to open the EPS file and leave it for overplotting

close in optional

Set /close to close the EPS plotfile

xrange in out optional
yrange in out optional
input_logngals in optional

Set /input_logngals to indicate data values are log(n) rather than n

plot_logngals in optional

Set /plot_logngals to plot log(n) rather than n (redundant if overplotting)

logflux in optional

Set /logflux for log flux rather than magnitudes

ylog in optional default=1-plot_logn
psym in optional

Uses D. Fanning's symcat (e.g., 16 = filled circle) for non-standard psym values

symcat_thick in optional

Thick keyword for symcat

color in optional
xstyle in optional

Default xstyle=1

ystyle in optional

Default ystyle=1

title in optional

Title for plot

xtitle in optional

Title for x-axis

ytitle in optional

Title for y-axis

legend_pos in out optional type=fltarr(2)

[xpos, ypos] for legend text. Output is position for next legend label, for overplotting. varies from [0, 0] = [left, bottom] to [1, 1] = [right, top].

legend_text in optional

Legend text

euclid in optional

Set /euclid to subtract Euclidean slope, or euclid=x to then divide by x (specify axis ranges and titles explicitly)

_REF_EXTRA in optional

Extra keywords for plots

Examples

bincentres = [10, 11, 12]

ngals = [10, 100, 1000]

err_ngals = [1, 10, 100]

ajs_number_counts_plot, bincentres=bincentres, ngals=ngals, err_ngals=err_ngals

Author information

History:

29 Oct 2008 Created, Anthony Smith

16 Jan 2009 Added euclid keyword, AJS

File attributes

Modifcation date: Fri Jan 16 23:50:00 2009
Lines: 417
Docformat: rst rst