Draw axis lines seperately. Added a function to generate 2d histo from function.