private void DrawBoundaryAndGraphAxes(Graphics g)
{
origin = new Point(margin, histogramPanel.Height - margin);
Point xmax = new Point(histogramPanel.Width - margin, histogramPanel.Height - margin);
Point ymax = new Point(margin, margin);
Point xymax = new Point(histogramPanel.Width - margin, margin);
Pen p = new Pen(Color.Black);
g.DrawLines(p, new Point[] { ymax, origin, xmax });
p.Dispose();
}