Skip to content

Commit 9a6c2c0

Browse files
committed
Review the flags etc
1 parent 89880b7 commit 9a6c2c0

File tree

5 files changed

+37
-46
lines changed

5 files changed

+37
-46
lines changed

CHANGELOG.md

+20-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22

33
## Plotters latest (?)
4+
This is the next major release of Plotters, see [release notes](./RELEASE-NOTES.md) for more detials.
5+
6+
### Added
7+
8+
- The plotters backend API crate is introduced which allows third-party backend.
9+
- Allow slice used as a coordinate if the item type implements `PartialOrd`.
10+
- Linspace coordinate type, which allows define a discrete coordinate on continous value types (such as f32, DateTime, etc) with a step specification
11+
- Nested coordinate type, now we support define pair of category and nested values as nested coordinate.
12+
- Introduce backend crates: plotters-bitmap, plotters-svg, plotters-cairo, plotters-canvas, plotters-console
413
### Fixed
514

615
- Adjust Canvas backend size with DPR (Thanks to Marius-Mueller)
@@ -9,6 +18,17 @@
918

1019
- Enhanced key point algorithms: New key point hint trait are used for key point algorithms && many improvment on key point algorithms for different types
1120
- Renamed `MeshStyle::line\_style\_1\ and `MeshStyle::line\_style\_2` to `bold\_line\_style` and `light\_line\_style`
21+
- Reorganize the "plotters::coord" namespace
22+
- Improved discrete coordinate trait
23+
- Split backend code into isolated crates and can be maintained indepdendenly
24+
- Category coordinate is now replaced by slice coordinate
25+
- Removing the requirement for `Debug` trait for chart coordinate, allows ranged coordinate define its own formatting function.
26+
27+
### Removed
28+
29+
- The `Path` name alias for `PathElement`
30+
- Most code `plotters::drawing::backend\_impl::\* ` (expect `MockedBackend` for testing purpose) is removed due to crate split.
31+
- Piston backend due to the Piston project seems not actively developing
1232

1333
## Plotters 0.2.15 (2020-05-26)
1434
### Fixed
@@ -32,29 +52,6 @@
3252
- Default rasterizer causing bitmap backend draw out-of-range pixels
3353
- Depdendicy fix
3454

35-
This is the next major release of Plotters, see [release notes](./RELEASE-NOTES.md) for more detials.
36-
37-
### Added
38-
39-
- The plotters backend API crate is introduced which allows third-party backend.
40-
- Allow slice used as a coordinate if the item type implements `PartialOrd`.
41-
- Linspace coordinate type, which allows define a discrete coordinate on continous value types (such as f32, DateTime, etc) with a step specification
42-
- Nested coordinate type, now we support define pair of category and nested values as nested coordinate.
43-
- Introduce backend crates: plotters-bitmap, plotters-svg, plotters-cairo, plotters-canvas, plotters-console
44-
45-
### Improved
46-
47-
- Improved discrete coordinate trait
48-
- Split backend code into isolated crates and can be maintained indepdendenly
49-
- Category coordinate is now replaced by slice coordinate
50-
- Removing the requirement for `Debug` trait for chart coordinate, allows ranged coordinate define its own formatting function.
51-
52-
### Removed
53-
54-
- The `Path` name alias for `PathElement`
55-
- Piston backend due to the Piston project seems not actively developing
56-
- Most code `plotters::drawing::backend_impl::*` (expect `MockedBackend` for testing purpose) is removed due to crate split.
57-
5855
## Plotters 0.2.12 (2019-12-06)
5956
### Added
6057

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "plotters"
3-
version = "0.3.0-pre"
3+
version = "0.2.15"
44
authors = ["Hao Hou <[email protected]>"]
55
edition = "2018"
66
license = "MIT"
@@ -17,11 +17,11 @@ num-traits = "0.2.11"
1717
chrono = { version = "0.4.11", optional = true }
1818
# Plotters backend deps
1919
# TODO: Update the version when publish
20-
plotters-backend = "0.0.*"
21-
plotters-svg = {version = "0.1.*", optional = true}
20+
plotters-backend = "^0.2.*"
21+
plotters-svg = {version = "^0.2.*", optional = true}
2222

2323
[dependencies.plotters-bitmap]
24-
version = "0.1.*"
24+
version = "^0.2.*"
2525
optional = true
2626
default_features = false
2727

@@ -96,7 +96,7 @@ rand_distr = "0.2.2"
9696
criterion = "0.3.2"
9797
rayon = "1.3.0"
9898
rand_xorshift = "0.2.0"
99-
plotters-bitmap = "0.1.*"
99+
plotters-bitmap = "^0.2.*"
100100

101101
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
102102
wasm-bindgen-test = "0.3.12"

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,13 @@ By doing so, you can minimize the number of dependencies down to only `itertools
487487

488488
The following list is a complete list of features that can be opt in and out.
489489

490-
- Drawing backends related features
490+
- Tier 1 drawing backends
491491

492492
| Name | Description | Additional Dependency |Default?|
493493
|---------|--------------|--------|------------|
494-
| image\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
495-
| svg | Enable `SVGBackend` Support | None | Yes |
496-
| gif\_backend| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
497-
| piston | Enable `PistonWindowBackend` | piston\_window, rusttype, font-kit | No |
498-
| cairo | Enable `CairoBackend` | cairo-rs, rusttype, font-kit | No |
494+
| bitmap\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
495+
| svg\_backend | Enable `SVGBackend` Support | None | Yes |
496+
| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
499497

500498
- Font manipulation features
501499

doc-template/readme.template.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,13 @@ By doing so, you can minimize the number of dependencies down to only `itertools
252252

253253
The following list is a complete list of features that can be opt in and out.
254254

255-
- Drawing backends related features
255+
- Tier 1 drawing backends
256256

257257
| Name | Description | Additional Dependency |Default?|
258258
|---------|--------------|--------|------------|
259-
| image\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
260-
| svg | Enable `SVGBackend` Support | None | Yes |
261-
| gif\_backend| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
262-
| piston | Enable `PistonWindowBackend` | piston\_window, rusttype, font-kit | No |
263-
| cairo | Enable `CairoBackend` | cairo-rs, rusttype, font-kit | No |
259+
| bitmap\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
260+
| svg\_backend | Enable `SVGBackend` Support | None | Yes |
261+
| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
264262

265263
- Font manipulation features
266264

src/lib.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -608,15 +608,13 @@ By doing so, you can minimize the number of dependencies down to only `itertools
608608
609609
The following list is a complete list of features that can be opt in and out.
610610
611-
- Drawing backends related features
611+
- Tier 1 drawing backends
612612
613613
| Name | Description | Additional Dependency |Default?|
614614
|---------|--------------|--------|------------|
615-
| image\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
616-
| svg | Enable `SVGBackend` Support | None | Yes |
617-
| gif\_backend| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
618-
| piston | Enable `PistonWindowBackend` | piston\_window, rusttype, font-kit | No |
619-
| cairo | Enable `CairoBackend` | cairo-rs, rusttype, font-kit | No |
615+
| bitmap\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
616+
| svg\_backend | Enable `SVGBackend` Support | None | Yes |
617+
| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
620618
621619
- Font manipulation features
622620

0 commit comments

Comments
 (0)