Now we are nearly ready to print the whole graph.
The function to print the graph with the proper labels follows the outline we created earlier (see A Graph with Labeled Axes), but with additions.
Here is the outline:
(defun print-graph (numbers-list) "documentation…" (let ((height … …))
(print-Y-axis height … ) (graph-body-print numbers-list) (print-X-axis … )))
|• The final version:||A few changes.|
|• Test print-graph:||Run a short test.|
|• Graphing words in defuns:||Executing the final code.|
|• lambda:||How to write an anonymous function.|
|• mapcar:||Apply a function to elements of a list.|
|• Another Bug:||Yet another bug … most insidious.|
|• Final printed graph:||The graph itself!|