wlandsman / IDLAstro

Astronomy related procedures in the commercial IDL language
https://asd.gsfc.nasa.gov/archive/idlastro/
BSD 2-Clause "Simplified" License
144 stars 64 forks source link

Fix FILL with PLOTHIST when axis is inverted #2

Closed tbowers7 closed 10 years ago

tbowers7 commented 10 years ago

Fix use of FILL in PLOTHIST with an axis is inverted (i.e. xcrange[0] > xcrange[1]). Add check for inverted axis, and correctly force XHIST values to be within the plot range.

This fix is useful for Galactic Longitude plots, among other things.

modified:   pro/plot/plothist.pro