Plot: Graph Plotting
(require plot) | package: plot-gui-lib |
Typed Racket users should use
(require plot/typed) | package: plot-gui-lib |
Plot provides a flexible interface for producing nearly any kind of plot. It includes many common kinds already, such as scatter plots, line plots, contour plots, histograms, and 3D surfaces and isosurfaces. Thanks to Racket’s excellent multiple-backend drawing library, Plot can render plots as manipulatable images in DrRacket, as bitmaps in slideshows, as PNG, PDF, PS and SVG files, or on any device context.
For non-GUI uses, see plot/no-gui. For REPL-like environments outside of DrRacket (including Scribble manuals) in particular, see plot/pict and plot/bitmap.
A note on backward compatibility. Plot has undergone a major rewrite between versions 5.1.3 and 5.2. Many programs written using Plot 5.1.3 and earlier will still compile, run and generate plots. Some programs will not. Most programs use deprecated functions such as mix, line and surface. These functions still exist for backward compatibility, but are deprecated and may be removed in the future. If you have code written for Plot 5.1.3 or earlier, please see Porting From Plot <= 5.1.3 (and possibly Compatibility Module).