Axes isn't a JComponent...
Moved function-drawing into Function class