Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/histogram2d.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

histogram2d

Context: visualization

Synopsis

Create a 2D histogram from a pair of axes and a pair of sample arrays

Syntax

histogram2d( x, y, x_grid, y_grid )

Description

The histogram2d command creates a histogram array from an pair of samples and a pair of axes.


Example

sherpa> dataspace2d( [216, 261] )
sherpa> x, y = get_axes()
sherpa> n = histogram2d( val0, val1, x, y )
sherpa> set_dep( n )

A binned 2D histogram is stored in the blank image created by the dataspace2d and set_dep commands.


Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

data
copy_data, dataspace1d, dataspace2d, datastack, delete_data, fake, get_axes, get_bkg_plot, get_counts, get_data, get_data_plot, get_dep, get_dims, get_error, get_quality, get_specresp, get_staterror, get_syserror, group, load_ascii, load_data, load_grouping, load_quality, set_data, set_quality, ungroup, unpack_ascii, unpack_data
filtering
get_filter, load_filter, set_filter
info
get_default_id, list_data_ids, list_response_ids
modeling
clean
plotting
plot_data, set_xlinear, set_xlog, set_ylinear, set_ylog
saving
save_error, save_filter, save_grouping, save_quality, save_staterror, save_syserror
utilities
calc_data_sum, calc_data_sum2d, calc_ftest, calc_kcorr, calc_mlr, calc_model_sum2d, calc_source_sum2d, get_rate
visualization
contour, contour_data, contour_ratio, get_ratio, get_resid, histogram1d, image_data, rebin