tree: 3ce12e6dcde6f090afa2d096e2ef687295bf8ae0 [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. customized_coord.rs
  10. errorbar.rs
  11. full_palette.rs
  12. histogram.rs
  13. mandelbrot.rs
  14. matshow.rs
  15. nested_coord.rs
  16. normal-dist.rs
  17. normal-dist2.rs
  18. pie.rs
  19. README.md
  20. relative_size.rs
  21. sierpinski.rs
  22. slc-temp.rs
  23. snowflake.rs
  24. stock.rs
  25. tick_control.rs
  26. two-scales.rs
examples/README.md

plotters examples

  • The example projects have been moved to independent git repository under plotters-rs organization, please check the Example Project section for the links.

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 rely on the output of examples to detect potential 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.

Example Projects