plot from textbook