Anthony Smith's IDL routines

Galaxies etc.

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

misc/

ajs_pixel_plot.pro

topajs_pixel_plot

ajs_pixel_plot, x, y [, binsize1=binsize1] [, binsize2=binsize2] [, nbins1=nbins1] [, nbins2=nbins2] [, xrange=xrange] [, yrange=yrange] [, overplot=overplot] [, ct=ct] [, color=color] [, _REF_EXTRA=_REF_EXTRA]

Plot (large number of) points as pixels (rectangles), with colour (white->black) representing density

Parameters

x in required

x-coordinate of points

y in required

y-coordinate of points

Keywords

binsize1 in optional

Size of bin in x-direction

binsize2 in optional

Size of bin in y-direction

nbins1 in optional

Number of bins in x-direction (ignored if xrange and binsize1 set; default 50)

nbins2 in optional

Number of bins in y-direction (ignored if yrange and binsize2 set; default 50)

xrange in optional

Range for plot (if not overplot) and range for histogram

yrange in optional

Range for plot (if not overplot) and range for histogram

overplot in optional

Set /overplot to overplot

ct in optional

Colour table: -1 = use current, -2 = fixed colour (color keyword), -3 (or not specified) = default (white -> black) If color keyword set, and ct != -2, generate colour table from color

color in optional

Colour to use instead of grayscale/black

_REF_EXTRA in optional

Extra keywords for plot

Examples

ajs_plot_radec, ra, dec, /nodata, xtitle='RA / degrees', ytitle='dec / degrees'

ajs_pixel_plot, ra, sin(dec / !RADEG), nbins1=200, nbins2=200, /overplot, ct=40

Sample output (click to enlarge):

Author information

History:

18 Apr 2008 Written, Anthony Smith

File attributes

Modifcation date: Fri Jun 6 08:19:26 2008
Lines: 161
Docformat: rst rst