Skip to content

Commit 3245100

Browse files
author
Ioannis Giagkiozis
committed
Merge branch 'dev' of github.com:igiagkiozis/plotly into dev
2 parents 5def132 + 1a17e81 commit 3245100

32 files changed

+331
-243
lines changed

.github/workflows/dev_ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build_dev
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
pull_request:
7+
branches: [ dev ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build_linux:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: build_linux
19+
run: cargo build --all-features --verbose
20+
- name: Run tests
21+
run: cargo test --all-features --release --verbose
22+
23+
build_windows:
24+
runs-on: windows-latest
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: build_windows
29+
run: cargo build --all-features --verbose
30+
- name: Run tests
31+
run: cargo test --all-features --release --verbose
32+
33+
build_macos:
34+
runs-on: macos-latest
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: build_macos
39+
run: cargo build --all-features --verbose
40+
- name: Run tests
41+
run: cargo test --all-features --release --verbose

.github/workflows/release_ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: build_master
22

33
on:
44
push:
@@ -18,7 +18,7 @@ jobs:
1818
- name: build_linux
1919
run: cargo build --all-features --verbose
2020
- name: Run tests
21-
run: cargo test --workspace --verbose
21+
run: cargo test --all-features --release --verbose
2222

2323
build_windows:
2424
runs-on: windows-latest
@@ -28,7 +28,7 @@ jobs:
2828
- name: build_windows
2929
run: cargo build --all-features --verbose
3030
- name: Run tests
31-
run: cargo test --workspace --verbose
31+
run: cargo test --all-features --release --verbose
3232

3333
build_macos:
3434
runs-on: macos-latest
@@ -38,4 +38,4 @@ jobs:
3838
- name: build_macos
3939
run: cargo build --all-features --verbose
4040
- name: Run tests
41-
run: cargo test --workspace --verbose
41+
run: cargo test --all-features --release --verbose

.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: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,32 @@ 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+
### Fixed
14+
- Axis ticks text has the wrong parameter name (Issue #45).
15+
16+
## [0.6.0] - 2021-01-31
17+
### Added
18+
- tag matches for struct Axis : allow for synchronisation between subplots on x-axis
19+
- fn matches in impl of Axis
720

8-
## [0.6.0] - 2020-xx-xx
21+
## [0.6.0] - 2020-07-25
922
### Added
10-
- Shapes support (TODO add link to documentation and examples).
11-
- Annotations support (TODO add link to documentation and examples).
12-
- Docstrings.
13-
- `ndarray` support (TODO add link to documentation and examples).
14-
- Jupyter lab support (TODO add link to documentation and examples).
23+
- Shapes support ([documentation](https://igiagkiozis.github.io/plotly/content/fundamentals/shapes.html)).
24+
- Annotations support.
25+
- Docstrings to `Scatter`.
26+
- `ndarray` support ([documentation](https://igiagkiozis.github.io/plotly/content/fundamentals/ndarray_support.html)).
27+
- Jupyter lab and notebook support ([documentation](https://igiagkiozis.github.io/plotly/content/fundamentals/jupyter_support.html)).
1528
### Changed
1629
- Removed `num` dependence.
1730
- Removed `plotly_orca` and the `orca` feature. Use the `kaleido` feature for static image generation.
1831
- Updated Kaleido version in `plotly_kaleido` to 0.0.1.
19-
### Fixed
20-
- xx
32+
2133

2234
## [0.5.1] - 2020-07-12
2335
### Added
@@ -46,7 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4658

4759
## [0.4.1] - 2020-03-26
4860
### Fixed
49-
- Added error message to capture the scenario when there is no default browser (or no browser at all) on a machine.
61+
- Added error message to capture the scenario when there is no default browser (or no browser at all) on a machine.
5062
The message suggests a few alternatives.
5163

5264
## [0.4.0] - 2020-02-27
@@ -66,10 +78,10 @@ The message suggests a few alternatives.
6678
- `TraceSerialize` renamed to `Trace`
6779
- `Plot::show_jpg` renamed to `Plot::show_jpeg` for consistency
6880
- Removed HexColor type. Hex color input is still supported using `String`s or string slices
69-
- Refactored project structure:
81+
- Refactored project structure:
7082
- All plots `Trace`s are now accessible from the main namespace `plotly::`.
7183
- Enums and structs common to more than 1 plot type and/or the `Layout` now live in `plotly::common::`
72-
- Internal methods and structs that are not considered part of the public API are now in `plotly::private::`
84+
- Internal methods and structs that are not considered part of the public API are now in `plotly::private::`
7385

7486
### Fixed
7587
- Color serialization was operating correctly only on Rgb, Rgba and Hex colors ignoring the named colors
@@ -84,7 +96,7 @@ The message suggests a few alternatives.
8496
- Box plot
8597
- Scatter and Box plot with error bars
8698
- Candlestick plot
87-
- OHLC plot
99+
- OHLC plot
88100
- Extended README.md with a few basic examples
89101
- The API is now based on the builder pattern
90102
- Extended color set
@@ -119,4 +131,4 @@ The message suggests a few alternatives.
119131
## [0.1.0] - 2020-01-26
120132
### Added
121133
- Placeholder repository.
122-
- Proof of concept implementation of a scatter plot.
134+
- Proof of concept implementation of a scatter plot.

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
}

0 commit comments

Comments
 (0)