diff --git a/README.md b/README.md index 3ca3cff..7b62d81 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add the following to your `Cargo.toml` file: ```toml [dependencies] -pgfplots = { version = "0.2", features = ["inclusive"] } +pgfplots = { version = "0.3", features = ["inclusive"] } ``` Plotting a quadratic function is as simple as: @@ -33,9 +33,11 @@ plot.show()?; ## [Examples](https://github.com/DJDuque/pgfplots/tree/main/examples) -Click on each image to see their source code: +A more extensive list of examples and their source code is available in the +`examples/` directory (runnable with +`cargo run --all-features --example example_name`). -| | | | +|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/fitted_line.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/rectangle_integration.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/snowflake.rs)| |-|-|-| |![](https://github.com/DJDuque/pgfplots/blob/main/examples/fitted_line.png)|![](https://github.com/DJDuque/pgfplots/blob/main/examples/rectangle_integration.png)|![](https://github.com/DJDuque/pgfplots/blob/main/examples/snowflake.png)| diff --git a/examples/README.md b/examples/README.md index 484c4b8..02d015f 100644 --- a/examples/README.md +++ b/examples/README.md @@ -6,6 +6,6 @@ fully customize your plots. These take valid PGFPlots keys, which you can browse in the official manual. There is a set of features from LaTeX's pgfplots missing; please open an issue for these. -| | | | +|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/fitted_line.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/rectangle_integration.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/snowflake.rs)| |-|-|-| |![](https://github.com/DJDuque/pgfplots/blob/main/examples/fitted_line.png)|![](https://github.com/DJDuque/pgfplots/blob/main/examples/rectangle_integration.png)|![](https://github.com/DJDuque/pgfplots/blob/main/examples/snowflake.png)|