----- file created by makedoc on: Thu Sep 11 15:03:11 2014
----- Documentation for /scisoft/xop2.4/extensions/shadowvui/src/lib/histosh.pro -----


 function histosh,arr2,w,nbins=nbins,xrange=xrange, $
  plot=plot,swap=swap,erase=erase,fill=fill,yrange=yrange, $
  _extra=extra, binSize=binSize

 (to be used internally bu plotxy and histo1)
 plot:   0=None, 1=Histo, 2=Histo and errors

 extra: Kwywords passed to plotHisto
 binSize: output keyword
 

 M. Sanchez del Rio, ESRF, June 1995
	97-04-03 srio@esr.fr adds catch.

 06-02-21 srio@esrf.fr Make calculations in double
 07-06-12 srio@esrf.fr reformes it using new histogramW
          and plotHisto
 08-09-12 srio@esrf.eu forces output to have nBins bins (eliminated
          a possible extra bin with expurious round values). 
 2011-04-13 srio@esrf.eu added storage of the square of counts for
          error calculations. 


