spice-herald / RQpy

This repository provides helpful tools for DM search analysis using detectors studied by the Pyle Group.
GNU General Public License v3.0
4 stars 3 forks source link

Improved the use of the xlims and ylims kwargs in rqpy.densityplot #141

Closed slwatkins closed 5 years ago

slwatkins commented 5 years ago

In rqpy.densityplot, we always had a small issue with trying to set x and y limits that were larger than the range of the data. This is because the plotting function used (ax.hist2d) automatically sets the limits based on the range of the data, and we weren't actually using the limits inputted.

I've now passed the limits directly to the range kwarg in ax.hist2d, so that xlims and ylims are properly used.

I've also fixed some white space in _core_plotting.py as a part of this PR.