Skip to content

Commit f72e61c

Browse files
author
Ioannis Giagkiozis
committed
shapes examples
experiments with deserialization annotations ndarray support for Histogram - removed plotly_orca extending ndarray support
1 parent 9cfb741 commit f72e61c

Some content is hidden

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

44 files changed

+1666
-1452
lines changed

.github/workflows/release_ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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 --exclude plotly_orca --verbose
21+
run: cargo test --workspace --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 --exclude plotly_orca --verbose
31+
run: cargo test --workspace --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 --exclude plotly_orca --verbose
41+
run: cargo test --workspace --verbose

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [0.6.0] - 2020-xx-xx
99
### Added
10-
- prelude
11-
- Shapes support.
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).
1214
### Changed
13-
- xx
15+
- Removed `num` dependence.
16+
- Removed `plotly_orca` and the `orca` feature. Use the `kaleido` feature for static image generation.
17+
- Updated Kaleido version in `plotly_kaleido` to 0.0.1.
1418
### Fixed
1519
- xx
1620

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22
members = [
33
"plotly",
4-
"plotly_orca",
54
"plotly_kaleido",
65
"plotly_ndarray"
76
]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<a href="">
2929
<img src="https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg" alt="Minimum Version">
3030
</a>
31-
3231
</div>
3332

3433
A plotting library for Rust powered by [Plotly.js](https://plot.ly/javascript/).
@@ -40,7 +39,7 @@ Add this to your `Cargo.toml`:
4039

4140
```toml
4241
[dependencies]
43-
plotly = "0.5.1"
42+
plotly = "0.6.0"
4443
```
4544

4645
For changes since the last version please consult the [change log](https://github.com/igiagkiozis/plotly/blob/master/CHANGELOG.md).
@@ -51,13 +50,15 @@ The following feature flags are available:
5150
* Optional, compatible with Rust stable.
5251
* Adds plot save functionality to the following formats: png, jpeg, webp, svg, pdf and eps.
5352
* Requires some additional configuration, see [plotly_kaleido](https://github.com/igiagkiozis/plotly/tree/master/plotly_kaleido).
54-
* `orca` - This feature is **deprecated**, please use `kaleido` instead.
53+
* `ndarray`
54+
* Optional, compatible with Rust stable.
55+
* Adds support for creating plots directly using [ndarray](https://github.com/rust-ndarray/ndarray) types.
5556

5657
Saving to png, jpeg, webp, svg, pdf and eps formats can be made available by enabling the `kaleido` feature:
5758

5859
```toml
5960
[dependencies]
60-
plotly = { version = "0.5.1", features = ["kaleido"] }
61+
plotly = { version = "0.6.0", features = ["kaleido"] }
6162
```
6263
For further details please see [plotly_kaleido](https://github.com/igiagkiozis/plotly/tree/master/plotly_kaleido).
6364

docs/book/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ additional-js = ["ferris.js", "plotly-1.54.6.min.js"]
1717

1818

1919
[output.html.fold]
20-
enable = false
21-
level = 0
20+
enable = true
21+
level = 1

docs/book/src/SUMMARY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
- [Plotly.rs](./plotly_rs.md)
44
- [Getting Started](./getting_started.md)
5+
- [Fundamentals](./fundamentals.md)
6+
- [`ndarray` Support](./fundamentals/ndarray_support.md)
57
- [Recipes](./recipes.md)
8+
- [Fundamentals](./recipes/fundamentals.md)
9+
- [Axes](./recipes/fundamentals/axes.md)
10+
- [Interactive HTML Export](./recipes/fundamentals/interactive_html_export.md)
11+
- [Legends](./recipes/fundamentals/legends.md)
12+
- [Shapes](./recipes/fundamentals/shapes.md)
13+
- [Static Image Export](./recipes/fundamentals/static_image_export.md)
14+
- [Styling Markers](./recipes/fundamentals/styling_markers.md)
615
- [Basic Charts](./recipes/basic_charts.md)
716
- [Scatter Plots](./recipes/basic_charts/scatter_plots.md)
817
- [Line Charts](./recipes/basic_charts/line_charts.md)

docs/book/src/fundamentals.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fundamentals
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# `ndarray` Support

docs/book/src/getting_started.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
11
# Getting Started
2-
3-
To start using `Plotly.rs` in your project add the following to your `Cargo.toml`:
2+
<div align="center">
3+
<a href="https://github.com/igiagkiozis/plotly/tree/master">
4+
<img src="https://img.shields.io/badge/Plotly.rs-master-brightgreen" alt="build status">
5+
</a>
6+
<a href="https://github.com/igiagkiozis/plotly/actions">
7+
<img src="https://github.com/igiagkiozis/plotly/workflows/build/badge.svg" alt="build status">
8+
</a>
9+
<a href="https://crates.io/crates/plotly">
10+
<img src="https://img.shields.io/crates/v/plotly.svg" alt="Crates.io">
11+
</a>
12+
<a href="https://docs.rs/plotly">
13+
<img src="https://docs.rs/plotly/badge.svg" alt="Documentation">
14+
</a>
15+
<a href="">
16+
<img src="https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg" alt="Minimum Version">
17+
</a>
18+
</div>
19+
20+
To start using [Plotly.rs](https://github.com/igiagkiozis/plotly) in your project add the following to your `Cargo.toml`:
421

522
```toml
623
[dependencies]
7-
plotly = "0.5.1"
24+
plotly = "0.6.0"
825
```
926

10-
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` 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:
27+
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:
1128

1229
```toml
1330
[dependencies]
14-
plotly = { version = "0.5.1", features = ["kaleido"] }
31+
plotly = { version = "0.6.0", features = ["kaleido"] }
1532
```
1633

1734
Plotly Kaleido is an open source project
1835

1936

20-
`Plotly.rs` has three main components:
37+
[Plotly.rs](https://github.com/igiagkiozis/plotly) has three main components:
2138

2239
- Traces; these are containers for the data for display,
2340
- Layout, fine tunes the display of traces on the canvas and more generally controls the way that the plot is displayed, and,

docs/book/src/plotly_rs.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# Plotly.rs
2+
<div align="center">
3+
<a href="https://github.com/igiagkiozis/plotly/tree/master">
4+
<img src="https://img.shields.io/badge/Plotly.rs-master-brightgreen" alt="build status">
5+
</a>
6+
<a href="https://github.com/igiagkiozis/plotly/actions">
7+
<img src="https://github.com/igiagkiozis/plotly/workflows/build/badge.svg" alt="build status">
8+
</a>
9+
<a href="https://crates.io/crates/plotly">
10+
<img src="https://img.shields.io/crates/v/plotly.svg" alt="Crates.io">
11+
</a>
12+
<a href="https://docs.rs/plotly">
13+
<img src="https://docs.rs/plotly/badge.svg" alt="Documentation">
14+
</a>
15+
<a href="">
16+
<img src="https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg" alt="Minimum Version">
17+
</a>
18+
</div>
219

320
Plotly.rs is a plotting library powered by [Plotly.js](https://plot.ly/javascript/). The aim is to bring over to Rust all the functionality that `Python` users have come to rely on; with the added benefit of type safety and speed.
421

0 commit comments

Comments
 (0)