Relating the graph of a cubic function to its algebra