Skip to content

Commit 731f9eb

Browse files
mfreebornkaihowlJoelSjogren
authored
v0.8.2 (#116)
* Refactor examples and readme (#113) * update main readme * update plotly_kaleido readme * update readme * typo * add readme * Refactor examples and readme * update changelog * fix CI workflow * update workflows * tpyo * formatting * fix workflows * update workflows * update readme * update readme * update url * final tweaks * Remove 'static lifetime requirement for `Plot.to_inline_html()` (#115) * remove 'static lifetime requirement * update changelog * add `legend_group_title` to existing traces (#110) * feat: add legendgrouptitle too all existing traces Fixes #109 * update changelog Co-authored-by: Michael Freeborn <[email protected]> * Traces for Mesh3d, Image, ScatterMapbox (#88) * Add basic Mesh3D trace functionality * Add basic Image trace functionality * Add basic ScatterMapbox functionality * Fix compilation errors due to merge * Copy some setters * Fill in some more Mesh3D setters * Complete the Mesh3D setters * Complete the Image setters * Sketch idea of ImageData trait * Complete the ScatterMapbox setters * Add tests for Mesh3D * Fix cargo warnings * Make greater use of IntoIterator trait * Add tests for Image * Add tests for ScatterMapbox * Fix compilation errors * Insert _ in setter names * Run rustfmt and add line breaks to documentation * Add jupyter lab examples for Mesh3D, Image, ScatterMapbox * Update CHANGELOG * Remove setter assertions * refactoring * fix tests * formatting * add ImageData trait * add Image trace examples * add mesh3d example * rustfmt * add map example * tweak zoom data type * rustfmt * clippy * update workflows Co-authored-by: Michael Freeborn <[email protected]> * add plotly_image to features list * v0.8.2 Co-authored-by: Kai Howelmeyer <[email protected]> Co-authored-by: Joel Sjögren <[email protected]>
1 parent c0ca691 commit 731f9eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3938
-1947
lines changed

.github/workflows/ci.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
pull_request:
7+
branches: [ dev ]
8+
9+
# Cancel any in-flight jobs for the same PR/branch so there's only one active
10+
# at a time
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
RUST_BACKTRACE: full
17+
18+
jobs:
19+
rustfmt:
20+
name: Rustfmt
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: dtolnay/rust-toolchain@nightly
25+
with:
26+
components: rustfmt
27+
- run: cargo fmt --all -- --check
28+
- run: cd ${{ github.workspace }}/examples && cargo fmt --all -- --check
29+
30+
clippy:
31+
name: Clippy
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v3
35+
- uses: dtolnay/rust-toolchain@stable
36+
with:
37+
components: clippy
38+
- run: cargo clippy -- -D warnings
39+
- run: cd ${{ github.workspace }}/examples && cargo clippy -- -D warnings
40+
41+
test:
42+
name: Tests
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
os: [ubuntu-latest, windows-latest, macos-latest]
47+
runs-on: ${{ matrix.os }}
48+
steps:
49+
- uses: actions/checkout@v3
50+
- uses: dtolnay/rust-toolchain@stable
51+
- run: cargo test --features=plotly_ndarray,kaleido
52+
53+
build_examples:
54+
name: Build Examples
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
example: [ # missing jupyter and wasm-yew-minimal
59+
3d_charts,
60+
basic_charts,
61+
custom_controls,
62+
financial_charts,
63+
images,
64+
kaleido,
65+
maps,
66+
ndarray,
67+
scientific_charts,
68+
shapes,
69+
subplots
70+
]
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v3
74+
- uses: dtolnay/rust-toolchain@stable
75+
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build
76+

.github/workflows/dev_ci.yml

-91
This file was deleted.

.github/workflows/release_ci.yml

+61-76
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,76 @@
1-
name: build_master
1+
name: Release
22

33
on:
44
push:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
88

9+
# Cancel any in-flight jobs for the same PR/branch so there's only one active
10+
# at a time
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
915
env:
10-
CARGO_TERM_COLOR: always
16+
RUST_BACKTRACE: full
1117

1218
jobs:
13-
build_linux:
19+
rustfmt:
20+
name: Rustfmt
1421
runs-on: ubuntu-latest
15-
1622
steps:
17-
- uses: actions/checkout@v2
18-
- name: build_linux
19-
run: cargo build --all-features --verbose --release
20-
- name: rustfmt
21-
run: cargo fmt --all -- --check
22-
- name: Run tests
23-
run: cargo test --features plotly_ndarray,kaleido --release --verbose
24-
- name: Run basic charts
25-
run: cargo run --example basic_charts --release
26-
- name: Run financial charts
27-
run: cargo run --example financial_charts --release
28-
- name: Run fundamentals
29-
run: cargo run --example fundamentals --release
30-
- name: Run ndarray support
31-
run: cargo run --example ndarray_support --features plotly_ndarray --release
32-
- name: Run scientific charts
33-
run: cargo run --example scientific_charts --release
34-
- name: Run statistical charts
35-
run: cargo run --example statistical_charts --release
36-
- name: Run subplots
37-
run: cargo run --example subplots --release
38-
- name: Run 3D plots
39-
run: cargo run --example plot3d --release
40-
41-
build_windows:
42-
runs-on: windows-latest
43-
23+
- uses: actions/checkout@v3
24+
- uses: dtolnay/rust-toolchain@nightly
25+
with:
26+
components: rustfmt
27+
- run: cargo fmt --all -- --check
28+
- run: cd ${{ github.workspace }}/examples && cargo fmt --all -- --check
29+
30+
clippy:
31+
name: Clippy
32+
runs-on: ubuntu-latest
4433
steps:
45-
- uses: actions/checkout@v2
46-
- name: build_windows
47-
run: cargo build --all-features --verbose --release
48-
- name: Run tests
49-
run: cargo test --features plotly_ndarray,kaleido --release --verbose
50-
- name: Run basic charts
51-
run: cargo run --example basic_charts --release
52-
- name: Run financial charts
53-
run: cargo run --example financial_charts --release
54-
- name: Run fundamentals
55-
run: cargo run --example fundamentals --release
56-
- name: Run ndarray support
57-
run: cargo run --example ndarray_support --features plotly_ndarray --release
58-
- name: Run scientific charts
59-
run: cargo run --example scientific_charts --release
60-
- name: Run statistical charts
61-
run: cargo run --example statistical_charts --release
62-
- name: Run subplots
63-
run: cargo run --example subplots --release
64-
- name: Run 3D plots
65-
run: cargo run --example plot3d --release
66-
67-
build_macos:
68-
runs-on: macos-latest
34+
- uses: actions/checkout@v3
35+
- uses: dtolnay/rust-toolchain@stable
36+
with:
37+
components: clippy
38+
- run: cargo clippy -- -D warnings
39+
- run: cd ${{ github.workspace }}/examples && cargo clippy -- -D warnings
6940

41+
test:
42+
name: Tests
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
os: [ubuntu-latest, windows-latest, macos-latest]
47+
runs-on: ${{ matrix.os }}
48+
steps:
49+
- uses: actions/checkout@v3
50+
- uses: dtolnay/rust-toolchain@stable
51+
- run: cargo test --features=plotly_ndarray,kaleido
52+
53+
build_examples:
54+
name: Build Examples
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
example: [ # missing jupyter and wasm-yew-minimal
59+
3d_charts,
60+
basic_charts,
61+
custom_controls,
62+
financial_charts,
63+
images,
64+
kaleido,
65+
maps,
66+
ndarray,
67+
scientific_charts,
68+
shapes,
69+
subplots
70+
]
71+
runs-on: ubuntu-latest
7072
steps:
71-
- uses: actions/checkout@v2
72-
- name: build_macos
73-
run: cargo build --all-features --verbose --release
74-
- name: Run tests
75-
run: cargo test --features plotly_ndarray,kaleido --release --verbose
76-
- name: Run basic charts
77-
run: cargo run --example basic_charts --release
78-
- name: Run financial charts
79-
run: cargo run --example financial_charts --release
80-
- name: Run fundamentals
81-
run: cargo run --example fundamentals --release
82-
- name: Run ndarray support
83-
run: cargo run --example ndarray_support --features plotly_ndarray --release
84-
- name: Run scientific charts
85-
run: cargo run --example scientific_charts --release
86-
- name: Run statistical charts
87-
run: cargo run --example statistical_charts --release
88-
- name: Run subplots
89-
run: cargo run --example subplots --release
90-
- name: Run 3D plots
91-
run: cargo run --example plot3d --release
73+
- uses: actions/checkout@v3
74+
- uses: dtolnay/rust-toolchain@stable
75+
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build
76+

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ gh-pages/
55
Untitled*
66
.ipynb_checkpoints/
77
.DS_Store
8-
.vscode
8+
.vscode
9+
dist/
10+
out.*

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ 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.8.2] - 2022-11-03
8+
### Added
9+
- [[#110](https://github.com/igiagkiozis/plotly/pull/110)] `LegendGroupTitle` to existing traces.
10+
- [[#88](https://github.com/igiagkiozis/plotly/pull/88)] `Mesh3D`, `Image`, `ScatterMapbox` traces.
11+
12+
### Changed
13+
- [[#113](https://github.com/igiagkiozis/plotly/pull/113)] Refactored the structure of the examples to make them more accessible, whilst adding more examples e.g. for `wasm`.
14+
- [[#115](https://github.com/igiagkiozis/plotly/pull/115)] Simplify the function signature of Plot.to_inline_html() so that it just takes `Option<&str>` as an argument.
15+
716
## [0.8.1] - 2022-09-25
817
### Added
918
- Button support (i.e. [updatemenus](https://plotly.com/javascript/reference/layout/updatemenus/)) contibuted by [@sreenathkrishnan](https://github.com/sreenathkrishnan). Details and examples in this well written PR [#99](https://github.com/igiagkiozis/plotly/pull/99).

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
members = [
33
"plotly",
44
"plotly_derive",
5-
"plotly_kaleido"
5+
"plotly_kaleido",
66
]

0 commit comments

Comments
 (0)