Skip to content

Commit c052696

Browse files
author
Ioannis Giagkiozis
committed
updated plotly.js to v2.2.1 - experimental fix of kaleido panic issue; downloading kaleido in the default config directory
1 parent cf3608e commit c052696

25 files changed

+186
-171
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Cargo.lock
44
gh-pages/
55
Untitled*
66
.ipynb_checkpoints/
7+
.DS_Store

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.7.0] - 2021-xx-xx
8+
### Added
9+
-
10+
### Changed
11+
- Using plotly version 2.2.1
12+
- Updated Kaleido version in `plotly_kaleido` to 0.2.1.
13+
714
## [0.6.0] - 2021-01-31
815
### Added
916
- tag matches for struct Axis : allow for synchronisation between subplots on x-axis

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add this to your `Cargo.toml`:
3939

4040
```toml
4141
[dependencies]
42-
plotly = "0.6.0"
42+
plotly = "0.7.0"
4343
```
4444

4545
For changes since the last version please consult the [change log](https://github.com/igiagkiozis/plotly/blob/master/CHANGELOG.md).
@@ -58,7 +58,7 @@ Saving to png, jpeg, webp, svg, pdf and eps formats can be made available by ena
5858

5959
```toml
6060
[dependencies]
61-
plotly = { version = "0.6.0", features = ["kaleido"] }
61+
plotly = { version = "0.7.0", features = ["kaleido"] }
6262
```
6363
For further details please see [plotly_kaleido](https://github.com/igiagkiozis/plotly/tree/master/plotly_kaleido).
6464

docs/book/book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ create-missing = false
1414
default-theme = "Ayu"
1515
mathjax-support = true
1616
additional-css = ["ferris.css"]
17-
additional-js = ["ferris.js", "plotly-1.54.6.min.js"]
17+
additional-js = ["ferris.js", "plotly-2.2.1.min.js"]
1818

1919

2020
[output.html.fold]

docs/book/plotly-1.54.6.min.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

docs/book/plotly-2.2.1.min.js

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/book/src/fundamentals/jupyter_support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Jupyter Support
22

3-
As of version `0.6.0`, [Plotly.rs](https://github.com/igiagkiozis/plotly) has native support for the [EvCxR Jupyter Kernel](https://github.com/google/evcxr/tree/master/evcxr_jupyter).
3+
As of version `0.7.0`, [Plotly.rs](https://github.com/igiagkiozis/plotly) has native support for the [EvCxR Jupyter Kernel](https://github.com/google/evcxr/tree/master/evcxr_jupyter).
44

55
Once you've installed the required packages you'll be able to run all the examples shown here as well as all [the recipes](../recipes.md) in Jupyter Lab!
66

@@ -70,7 +70,7 @@ jupyter lab
7070
create a new notebook and select the `Rust` kernel. Then create the following three cells and execute them in order:
7171

7272
```shell script
73-
:dep plotly = { version = ">=0.6.0" }
73+
:dep plotly = { version = ">=0.7.0" }
7474
:dep itertools-num = "0.1.3"
7575
```
7676

docs/book/src/fundamentals/ndarray_support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To enable [ndarray](https://github.com/rust-ndarray/ndarray) support in [Plotly.rs](https://github.com/igiagkiozis/plotly) add the following feature to your `Cargo.toml` file:
44
```toml
55
[dependencies]
6-
plotly = { version = ">=0.6.0", features = ["plotly_ndarray"] }
6+
plotly = { version = ">=0.7.0", features = ["plotly_ndarray"] }
77
```
88

99
This extends the [Plotly.rs](https://github.com/igiagkiozis/plotly) API in two ways:
@@ -64,7 +64,7 @@ fn multiple_ndarray_traces_over_columns(show: bool) {
6464
let t: Array<f64, Ix1> = Array::range(0., 10., 10. / n as f64);
6565
let mut ys: Array<f64, Ix2> = Array::zeros((11, 11));
6666
let mut count = 0.;
67-
for mut row in ys.gencolumns_mut() {
67+
for mut row in ys.columns_mut() {
6868
for index in 0..row.len() {
6969
row[index] = count + (index as f64).powf(2.);
7070
}

docs/book/src/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ To start using [Plotly.rs](https://github.com/igiagkiozis/plotly) in your projec
2222

2323
```toml
2424
[dependencies]
25-
plotly = "0.6.0"
25+
plotly = "0.7.0"
2626
```
2727

2828
To add the ability to save plots in the following formats: png, jpeg, webp, svg, pdf and eps, you can use the `kaleido` feature. This feature depends on [plotly/Kaleido](https://github.com/plotly/Kaleido); a cross-platform library for generating static images. All the necessary binaries have been included with `plotly_kaleido` for `linux`, `windows` and `macos`. Previous versions of [Plotly.rs](https://github.com/igiagkiozis/plotly) used the `orca` feature; however this has been deprecated as it provided the same functionality but required additional installation steps. To enable the `kaleido` feature add the following to your `Cargo.toml` instead:
2929

3030
```toml
3131
[dependencies]
32-
plotly = { version = "0.6.0", features = ["kaleido"] }
32+
plotly = { version = "0.7.0", features = ["kaleido"] }
3333
```
3434

3535
Plotly Kaleido is an open source project

docs/book/theme/header.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script src="https://cdn.plot.ly/plotly-1.54.6.min.js"></script>
1+
<script src="https://cdn.plot.ly/plotly-2.2.1.min.js"></script>

0 commit comments

Comments
 (0)