Skip to content

Commit 3a10958

Browse files
authored
Port readme changes to template
1 parent 82c51a4 commit 3a10958

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

doc-template/readme.template.md

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Plotters - A Rust drawing library focus on data plotting for both WASM and native applications 🦀📈🚀
1+
# Plotters - A Rust drawing library focusing on data plotting for both WASM and native applications 🦀📈🚀
22

33
<a href="https://crates.io/crates/plotters">
44
<img style="display: inline!important" src="https://img.shields.io/crates/v/plotters.svg"></img>
@@ -13,14 +13,14 @@
1313
<img style="display: inline! important" src="https://img.shields.io/badge/docs-development-lightgrey.svg"></img>
1414
</a>
1515

16-
Plotters is drawing library designed for rendering figures, plots, and charts, in pure rust. Plotters supports various types of back-ends,
16+
Plotters is a drawing library designed for rendering figures, plots, and charts, in pure Rust. Plotters supports various types of back-ends,
1717
including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
1818

19-
- A new Plotters Developer's Guide is working in progress. The preview version is available at [here](https://plotters-rs.github.io/book).
20-
- To try Plotters with interactive Jupyter notebook, or view [here](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html) for the static HTML version.
19+
- A new Plotters Developer's Guide is a work in progress. The preview version is available [here](https://plotters-rs.github.io/book).
20+
- Try Plotters with an interactive Jupyter notebook, or view [here](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html) for the static HTML version.
2121
- To view the WASM example, go to this [link](https://plotters-rs.github.io/wasm-demo/www/index.html)
22-
- Currently we have all the internal code ready for console plotting, but a console based backend is still not ready. See [this example](https://github.com/38/plotters/blob/master/examples/console.rs) for how to plotting on Console with a customized backend.
23-
- Plotters now moved all backend code to sperate repositories, check [FAQ list](#faq-list) for details
22+
- Currently we have all the internal code ready for console plotting, but a console based backend is still not ready. See [this example](https://github.com/38/plotters/blob/master/examples/console.rs) for how to plot on console with a customized backend.
23+
- Plotters has moved all backend code to separate repositories, check [FAQ list](#faq-list) for details
2424
- Some interesting [demo projects](#demo-projects) are available, feel free to try them out.
2525

2626
## Gallery
@@ -54,7 +54,7 @@ $$../examples/quick_start.rs$$
5454

5555
## Demo Projects
5656

57-
To learn how to use Plotters in different scenarios by checking out the following demo projects:
57+
To learn how to use Plotters in different scenarios, check out the following demo projects:
5858

5959
- WebAssembly + Plotters: [plotters-wasm-demo](https://github.com/plotters-rs/plotters-wasm-demo)
6060
- minifb + Plotters: [plotters-minifb-demo](https://github.com/plotters-rs/plotters-minifb-demo)
@@ -63,7 +63,7 @@ To learn how to use Plotters in different scenarios by checking out the followin
6363

6464
## Trying with Jupyter evcxr Kernel Interactively
6565

66-
Plotters now supports integrate with `evcxr` and is able to interactively drawing plots in Jupyter Notebook.
66+
Plotters now supports integration with `evcxr` and is able to interactively draw plots in Jupyter Notebook.
6767
The feature `evcxr` should be enabled when including Plotters to Jupyter Notebook.
6868

6969
The following code shows a minimal example of this.
@@ -104,7 +104,7 @@ figure
104104

105105
## Interactive Tutorial with Jupyter Notebook
106106

107-
*This tutorial is now working in progress and isn't complete*
107+
*This tutorial is a work in progress and isn't complete*
108108

109109
Thanks to the evcxr, now we have an interactive tutorial for Plotters!
110110
To use the interactive notebook, you must have Jupyter and evcxr installed on your computer.
@@ -114,57 +114,55 @@ After that, you should be able to start your Jupyter server locally and load the
114114

115115
```bash
116116
git clone https://github.com/38/plotters-doc-data
117-
cd plotteres-doc-data
117+
cd plotters-doc-data
118118
jupyter notebook
119119
```
120120

121121
And select the notebook called `evcxr-jupyter-integration.ipynb`.
122122

123-
Also, there's a static HTML version of this notebook available at the [this location](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html)
123+
Also, there's a static HTML version of this notebook available at [this location](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html)
124124

125125
## Plotting in Rust
126126

127-
Rust is a perfect language for data visualization. Although there are many mature visualization libraries in many different languages.
128-
But Rust is one of the best languages fits the need.
127+
Rust is a perfect language for data visualization. Although there are many mature visualization libraries in many different languages, Rust is one of the best languages that fits the need.
129128

130129
* **Easy to use** Rust has a very good iterator system built into the standard library. With the help of iterators,
131-
Plotting in Rust can be as easy as most of the high-level programming languages. The Rust based plotting library
130+
plotting in Rust can be as easy as most of the high-level programming languages. The Rust based plotting library
132131
can be very easy to use.
133132

134-
* **Fast** If you need rendering a figure with trillions of data points,
135-
Rust is a good choice. Rust's performance allows you to combine data processing step
133+
* **Fast** If you need to render a figure with trillions of data points,
134+
Rust is a good choice. Rust's performance allows you to combine the data processing step
136135
and rendering step into a single application. When plotting in high-level programming languages,
137136
e.g. Javascript or Python, data points must be down-sampled before feeding into the plotting
138137
program because of the performance considerations. Rust is fast enough to do the data processing and visualization
139138
within a single program. You can also integrate the
140-
figure rendering code into your application handling a huge amount of data and visualize it in real-time.
139+
figure rendering code into your application to handle a huge amount of data and visualize it in real-time.
141140

142-
* **WebAssembly Support** Rust is one of few the language with the best WASM support. Plotting in Rust could be
141+
* **WebAssembly Support** Rust is one of the languages with the best WASM support. Plotting in Rust could be
143142
very useful for visualization on a web page and would have a huge performance improvement comparing to Javascript.
144143

145144
## Plotting on HTML5 canvas with WASM Backend
146145

147-
Plotters currently supports backend that uses the HTML5 canvas. To use the WASM support, you can simply use
146+
Plotters currently supports a backend that uses the HTML5 canvas. To use WASM, you can simply use
148147
`CanvasBackend` instead of other backend and all other API remains the same!
149148

150149
There's a small demo for Plotters + WASM available at [here](https://github.com/plotters-rs/plotters-wasm-demo).
151150
To play with the deployed version, follow this [link](https://plotters-rs.github.io/wasm-demo/www/index.html).
152151

153-
154152
## What types of figure are supported?
155153

156154
Plotters is not limited to any specific type of figure.
157155
You can create your own types of figures easily with the Plotters API.
158156

159-
But Plotters provides some builtin figure types for convenience.
157+
Plotters does provide some built-in figure types for convenience.
160158
Currently, we support line series, point series, candlestick series, and histogram.
161159
And the library is designed to be able to render multiple figure into a single image.
162160
But Plotter is aimed to be a platform that is fully extendable to support any other types of figure.
163161

164162
## Concepts by examples
165163

166-
### Drawing Back-ends
167-
Plotters can use different drawing back-ends, including SVG, BitMap, and even real-time rendering. For example, a bitmap drawing backend.
164+
### Drawing Backends
165+
Plotters can use different drawing backends, including SVG, BitMap, and even real-time rendering. For example, a bitmap drawing backend.
168166

169167
```rust
170168
$$../examples/drawing_backends.rs$$
@@ -174,10 +172,10 @@ $$../examples/drawing_backends.rs$$
174172

175173
### Drawing Area
176174
Plotters uses a concept called drawing area for layout purpose.
177-
Plotters support multiple integrating into a single image.
175+
Plotters supports integrating multiple figures into a single image.
178176
This is done by creating sub-drawing-areas.
179177

180-
Besides that, the drawing area also allows the customized coordinate system, by doing so, the coordinate mapping is done by the drawing area automatically.
178+
Besides that, the drawing area also allows for a customized coordinate system, by doing so, the coordinate mapping is done by the drawing area automatically.
181179

182180
```rust
183181
$$../examples/drawing_area.rs$$
@@ -187,7 +185,7 @@ $$../examples/drawing_area.rs$$
187185

188186
### Elements
189187

190-
In Plotters, elements are build blocks of figures. All elements are able to draw on a drawing area.
188+
In Plotters, elements are the building blocks of figures. All elements are able to be drawn on a drawing area.
191189
There are different types of built-in elements, like lines, texts, circles, etc.
192190
You can also define your own element in the application code.
193191

@@ -203,9 +201,9 @@ $$../examples/elements.rs$$
203201

204202
### Composable Elements
205203

206-
Besides the built-in elements, elements can be composed into a logic group we called composed elements.
204+
Besides the built-in elements, elements can be composed into a logical group we called composed elements.
207205
When composing new elements, the upper-left corner is given in the target coordinate, and a new pixel-based
208-
coordinate which has the upper-left corner defined as `(0,0)` is used for further element composition purpose.
206+
coordinate which has the upper-left corner defined as `(0,0)` is used for further element composition.
209207

210208
For example, we can have an element which includes a dot and its coordinate.
211209

@@ -217,7 +215,7 @@ $$../examples/composable_elements.rs$$
217215

218216
### Chart Context
219217

220-
In order to draw a chart, Plotters need a data object built on top of the drawing area called `ChartContext`.
218+
In order to draw a chart, Plotters needs a data object built on top of the drawing area called `ChartContext`.
221219
The chart context defines even higher level constructs compare to the drawing area.
222220
For example, you can define the label areas, meshes, and put a data series onto the drawing area with the help
223221
of the chart context object.
@@ -266,13 +264,13 @@ Use `default_features = false` to disable those default enabled features,
266264
and then you should be able to cherry-pick what features you want to include into `Plotters` crate.
267265
By doing so, you can minimize the number of dependencies down to only `itertools` and compile time is less than 6s.
268266

269-
The following list is a complete list of features that can be opt in and out.
267+
The following list is a complete list of features that can be opted in or out.
270268

271269
- Tier 1 drawing backends
272270

273271
| Name | Description | Additional Dependency |Default?|
274272
|---------|--------------|--------|------------|
275-
| bitmap\_encoder | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
273+
| bitmap\_encoder | Allow `BitMapBackend` to save the result to bitmap files | image, rusttype, font-kit | Yes |
276274
| svg\_backend | Enable `SVGBackend` Support | None | Yes |
277275
| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
278276

@@ -318,7 +316,7 @@ The following list is a complete list of features that can be opt in and out.
318316

319317
* How to draw text/circle/point/rectangle/... on the top of chart ?
320318

321-
As you may realized, Plotters is a drawing library rather than a traditional data plotting library,
319+
As you may have realized, Plotters is a drawing library rather than a traditional data plotting library,
322320
you have the freedom to draw anything you want on the drawing area.
323321
Use `DrawingArea::draw` to draw any element on the drawing area.
324322

@@ -332,10 +330,10 @@ The following list is a complete list of features that can be opt in and out.
332330
- [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git)
333331
- [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git)
334332

335-
* How to check if a backend writes file successfully ?
333+
* How to check if a backend writes to a file successfully ?
336334

337-
The behavior of Plotters backend is consistent with standard library.
338-
When the backend instance is being dropped, [`crate::drawing::DrawingArea::present()`] or `Backend::present()` is called automatically
335+
The behavior of Plotters backend is consistent with the standard library.
336+
When the backend instance is dropped, [`crate::drawing::DrawingArea::present()`] or `Backend::present()` is called automatically
339337
whenever is needed. When the `present()` method is called from `drop`, any error will be silently ignored.
340338

341339
In the case that error handling is important, you need manually call the `present()` method before the backend gets dropped.

0 commit comments

Comments
 (0)