View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Histogram style plots with prows/pcols tasks?

Nicola Caon wrote on Aug 14, 2008

Hi,
recently I have been using the pcols and prows tasks as quick and effective tools to inspect spectra, for instance (by setting append=yes) to compare sky-background and peak values for a sequence of spectra of a same object obtained under variable atmospheric conditions.

The fact is that I like very much the "histogram style" plot, the one you get for instance when adding "histogram" in the "options" parameter of the splot task. I've been unable to find such option for prows or pcols (I'm using Iraf v2.14).

Are there any hidden settings or quick workarounds to make prows/pcols produce histogram style plots? Or, if the answer is no, would it be possible to add this option in the next Iraf release or patch (I suppose the modifications to the code are relatively simple)?

Thanks a lot
Nicola

Francisco Valdes wrote on Aug 14, 2008

Hello Nicola,

These are fairly old graphics programs, though useful as you've found, and they do not provide parameters for getting a histogram line type. There is no workaround.

However, because your wrote in ... :) I have made a simple change to the plot package for the next IRAF release that supports histograms in prow, prows, pcol, pcols, pvector, and graph. In that release the value of the "marker" parameter can be "line", "lhist", and "bhist" when plotting lines. The two histogram types differ in whether they draw to the bottom of the graph to create boxes.

Yours,
Frank Valdes

Last post on Aug 14, 2008