Closed nafisahis closed 6 years ago
@ctrueden & @nafisahis I am going to add back those commented lines of code... why? Well - one... I don't want to 'break' code for the other histograms inadvertently. And whether the code is there or not - it does not affect the presence of the regression line on the 2D histogram. So ... to play it safe. I think that can stay as is to minimally change what was previously there.
This pull request adds a regression line to the histogram inside the PDFWriter class. Essentially, an overlay is created to draw the line. Before converting the histogram with the overlay as awtImage, it is flattened on the image. This fixes issue #14.