GNU Info

Info Node: (emacs-lisp-intro.info)Print Whole Graph

(emacs-lisp-intro.info)Print Whole Graph


Prev: print-X-axis Up: Full Graph
Enter node , (file) or (file)node

Printing the Whole Graph
========================

   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 (Note: A Graph with Labelled 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!

automatically generated by info2www version 1.2.2.9