Skip to content

Commit 8216337

Browse files
committed
fix wasm
1 parent 757bbc8 commit 8216337

File tree

6 files changed

+57
-4
lines changed

6 files changed

+57
-4
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
2323
- 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.
2424
- To view the WASM example, go to this [link](https://plumberserver.com/plotters-wasm-demo/index.html)
2525
- 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.
26+
- Plotters now moved all backend code to sperate repository, check [FAQ list](#faq-list) for details
2627

2728
## Gallery
2829

@@ -545,4 +546,14 @@ The following list is a complete list of features that can be opt in and out.
545546
you have the freedom to draw anything you want on the drawing area.
546547
Use `DrawingArea::draw` to draw any element on the drawing area.
547548

549+
* Where can I find the backend code ?
550+
551+
Since Plotters 0.3, all drawing backends are independent crate from the main Plotters crate.
552+
Use the following link to find the backend code:
553+
554+
- [Bitmap Backend](https://github.com/plotters-rs/plotters-bitmap.git)
555+
- [SVG Backend](https://github.com/plotters-rs/plotters-svg.git)
556+
- [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git)
557+
- [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git)
558+
548559

doc-template/readme.template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
2323
- 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.
2424
- To view the WASM example, go to this [link](https://plumberserver.com/plotters-wasm-demo/index.html)
2525
- 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.
26+
- Plotters now moved all backend code to sperate repository, check [FAQ list](#faq-list) for details
2627

2728
## Gallery
2829

@@ -306,5 +307,15 @@ The following list is a complete list of features that can be opt in and out.
306307
you have the freedom to draw anything you want on the drawing area.
307308
Use `DrawingArea::draw` to draw any element on the drawing area.
308309

310+
* Where can I find the backend code ?
311+
312+
Since Plotters 0.3, all drawing backends are independent crate from the main Plotters crate.
313+
Use the following link to find the backend code:
314+
315+
- [Bitmap Backend](https://github.com/plotters-rs/plotters-bitmap.git)
316+
- [SVG Backend](https://github.com/plotters-rs/plotters-svg.git)
317+
- [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git)
318+
- [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git)
319+
309320
$$style$$
310321

doc-template/rustdoc/gallery

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,17 @@
203203
<img src="https://plotters-rs.github.io/plotters-doc-data/boxplot.svg" class="galleryItem"></img>
204204
</a>
205205
<div class="galleryText">
206-
Drawing bitmap on chart
206+
The boxplot demo
207207
<a href="https://github.com/38/plotters/blob/master/examples/boxplot.rs">[code]</a>
208208
</div>
209209
</div>
210+
211+
<div class="galleryItem">
212+
<a href="https://plotters-rs.github.io/plotters-doc-data/3d-plot.svg">
213+
<img src="https://plotters-rs.github.io/plotters-doc-data/3d-plot.svg" class="galleryItem"></img>
214+
</a>
215+
<div class="galleryText">
216+
3D plot rendering
217+
<a href="https://github.com/38/plotters/blob/master/examples/3d-plot.rs">[code]</a>
218+
</div>
219+
</div>

examples/wasm-demo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crate-type=["cdylib"]
99

1010
[dependencies]
1111
plotters = {path = "../.."}
12-
plotters-canvas = "0.1.*"
12+
plotters-canvas = "^0.3.*"
1313
wasm-bindgen = "0.2.62"
1414
wee_alloc = "0.4.5"
1515
web-sys = { version = "0.3.39", features = ["HtmlCanvasElement"] }

plotters-doc-data

src/lib.rs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
2525
- 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.
2626
- To view the WASM example, go to this [link](https://plumberserver.com/plotters-wasm-demo/index.html)
2727
- 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.
28+
- Plotters now moved all backend code to sperate repository, check [FAQ list](#faq-list) for details
2829
2930
## Gallery
3031
@@ -233,11 +234,21 @@ including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
233234
<img src="https://plotters-rs.github.io/plotters-doc-data/boxplot.svg" class="galleryItem"></img>
234235
</a>
235236
<div class="galleryText">
236-
Drawing bitmap on chart
237+
The boxplot demo
237238
<a href="https://github.com/38/plotters/blob/master/examples/boxplot.rs">[code]</a>
238239
</div>
239240
</div>
240241
242+
<div class="galleryItem">
243+
<a href="https://plotters-rs.github.io/plotters-doc-data/3d-plot.svg">
244+
<img src="https://plotters-rs.github.io/plotters-doc-data/3d-plot.svg" class="galleryItem"></img>
245+
</a>
246+
<div class="galleryText">
247+
3D plot rendering
248+
<a href="https://github.com/38/plotters/blob/master/examples/3d-plot.rs">[code]</a>
249+
</div>
250+
</div>
251+
241252
242253
## Table of Contents
243254
* [Gallery](#gallery)
@@ -662,6 +673,16 @@ The following list is a complete list of features that can be opt in and out.
662673
you have the freedom to draw anything you want on the drawing area.
663674
Use `DrawingArea::draw` to draw any element on the drawing area.
664675
676+
* Where can I find the backend code ?
677+
678+
Since Plotters 0.3, all drawing backends are independent crate from the main Plotters crate.
679+
Use the following link to find the backend code:
680+
681+
- [Bitmap Backend](https://github.com/plotters-rs/plotters-bitmap.git)
682+
- [SVG Backend](https://github.com/plotters-rs/plotters-svg.git)
683+
- [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git)
684+
- [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git)
685+
665686
666687
<style>
667688
img {

0 commit comments

Comments
 (0)