tree: 0ec239eb4287cf543f8ed34aa23779fe62e6c08e [path history] [tgz]
  1. 3d-plot.rs
  2. 3d-plot2.rs
  3. animation.rs
  4. area-chart.rs
  5. blit-bitmap.rs
  6. boxplot.rs
  7. chart.rs
  8. console.rs
  9. errorbar.rs
  10. histogram.rs
  11. mandelbrot.rs
  12. matshow.rs
  13. nested_coord.rs
  14. normal-dist.rs
  15. normal-dist2.rs
  16. README.md
  17. relative_size.rs
  18. sierpinski.rs
  19. slc-temp.rs
  20. snowflake.rs
  21. stock.rs
  22. tick_control.rs
  23. two-scales.rs
examples/README.md

plotters examples

To run any example, from within the repo, run cargo run --example <example_name> where <example name> is the name of the file without the .rs extension.

All the examples assumes the directory plotters-doc-data exists, otherwise those example crashs.

The output of these example files are used to generate the plotters-doc-data repo that populates the sample images in the main README. We also relies on the output of examples to detect protential layout changes. For that reason, they must be run with cargo from within the repo, or you must change the output filename in the example code to a directory that exists.

The examples that have their own directories and Cargo.toml files work differently. They are run the same way you would a standalone project.