@@ -158,15 +158,20 @@ To view the source code for each example, please click on the example image.
158158
159159 ``` sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev ```
160160
161+ ### Fedora Linux
162+
163+ ``` sudo dnf install pkgconf freetype-devel fontconfig-devel ```
164+
161165## Quick Start
162166
163167To use Plotters, you can simply add Plotters into your ` Cargo.toml `
164168``` toml
165169[dependencies ]
166170plotters = " 0.3.3"
167171```
172+ Create the subdirectory ` <Cargo project dir>/plotters-doc-data `
168173
169- And the following code draws a quadratic function. ` src/main.rs ` ,
174+ And the following code draws a quadratic function. ` src/main.rs ` writes the chart to ` plotters-doc-data/0.png `
170175
171176``` rust
172177use plotters :: prelude :: * ;
@@ -221,7 +226,7 @@ The feature `evcxr` should be enabled when including Plotters to Jupyter Noteboo
221226The following code shows a minimal example of this.
222227
223228``` text
224- :dep plotters = { version = "^0.3.6", default_features = false, features = ["evcxr", "all_series", "all_elements"] }
229+ :dep plotters = { version = "^0.3.6", default-features = false, features = ["evcxr", "all_series", "all_elements"] }
225230extern crate plotters;
226231use plotters::prelude::*;
227232
@@ -499,7 +504,7 @@ plotters = { git = "https://github.com/plotters-rs/plotters.git" }
499504
500505### Reducing Depending Libraries && Turning Off Backends
501506Plotters now supports use features to control the backend dependencies. By default, ` BitMapBackend ` and ` SVGBackend ` are supported,
502- use ` default_features = false` in the dependency description in ` Cargo.toml ` and you can cherry-pick the backend implementations.
507+ use ` default-features = false` in the dependency description in ` Cargo.toml ` and you can cherry-pick the backend implementations.
503508
504509- ` svg ` Enable the ` SVGBackend `
505510- ` bitmap ` Enable the ` BitMapBackend `
@@ -508,16 +513,16 @@ For example, the following dependency description would avoid compiling with bit
508513
509514``` toml
510515[dependencies ]
511- plotters = { git = " https://github.com/plotters-rs/plotters.git" , default_features = false , features = [" svg" ] }
516+ plotters = { git = " https://github.com/plotters-rs/plotters.git" , default-features = false , features = [" svg" ] }
512517```
513518
514519The library also allows consumers to make use of the [ ` Palette ` ] ( https://crates.io/crates/palette/ ) crate's color types by default.
515- This behavior can also be turned off by setting ` default_features = false` .
520+ This behavior can also be turned off by setting ` default-features = false` .
516521
517522### List of Features
518523
519524This is the full list of features that is defined by ` Plotters ` crate.
520- Use ` default_features = false` to disable those default enabled features,
525+ Use ` default-features = false` to disable those default enabled features,
521526and then you should be able to cherry-pick what features you want to include into ` Plotters ` crate.
522527By doing so, you can minimize the number of dependencies down to only ` itertools ` and compile time is less than 6s.
523528
0 commit comments