From b55d331eb69b2a172d8d0a03e801476b797ef249 Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Mon, 7 Jul 2025 23:36:48 +0200 Subject: [PATCH 01/10] fix typo in book example link Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ docs/book/src/recipes/subplots/subplots.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d4d6751..14bcc44b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.13.2] - 2025-xx-xx +- [[#327](https://github.com/plotly/plotly.rs/pull/327)] Fix book broken link + +### Fixed +- [[#326](https://github.com/plotly/plotly.rs/pull/326)] Fix book badges + ## [0.13.1] - 2025-07-07 ### Fixed diff --git a/docs/book/src/recipes/subplots/subplots.md b/docs/book/src/recipes/subplots/subplots.md index c4e9fa73..9ed53066 100644 --- a/docs/book/src/recipes/subplots/subplots.md +++ b/docs/book/src/recipes/subplots/subplots.md @@ -24,7 +24,7 @@ The `to_inline_html` method is used to produce the html plot displayed in this p {{#include ../../../../../examples/subplots/src/main.rs:subplots_with_multiple_traces}} ``` -{{#include ../../../../../examples/subplots/output/inline_subplot_with_multiple_traces.html}} +{{#include ../../../../../examples/subplots/output/inline_subplots_with_multiple_traces.html}} ## Custom Sized Subplot From f18cf7eb8e0b090251aa1379394c59ea3686e79f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 04:36:44 +0000 Subject: [PATCH 02/10] Update fantoccini requirement from 0.21 to 0.22 Updates the requirements on [fantoccini](https://github.com/jonhoo/fantoccini) to permit the latest version. - [Commits](https://github.com/jonhoo/fantoccini/compare/v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: fantoccini dependency-version: 0.22.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly_static/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index 92a359fb..a9b71b79 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -25,7 +25,7 @@ serde = { version = "1.0", features = ["derive"] } rand = "0.9" serde_json = "1.0" base64 = "0.22" -fantoccini = "0.21" +fantoccini = "0.22" tokio = { version = "1", features = ["full"] } anyhow = "1.0" urlencoding = "2" From 97d678830642c2f349c5e27484c337c15e5660cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 04:36:52 +0000 Subject: [PATCH 03/10] Update reqwest requirement from 0.11 to 0.12 Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version. - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.0...v0.12.22) --- updated-dependencies: - dependency-name: reqwest dependency-version: 0.12.22 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly_static/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index a9b71b79..77debc40 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -29,7 +29,7 @@ fantoccini = "0.22" tokio = { version = "1", features = ["full"] } anyhow = "1.0" urlencoding = "2" -reqwest = { version = "0.11", features = ["blocking"] } +reqwest = { version = "0.12", features = ["blocking"] } [dev-dependencies] plotly_static = { path = "." } From 434463905cd8ed0c20d1c8f34aa28713f362e268 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 04:50:38 +0000 Subject: [PATCH 04/10] Update env_logger requirement from 0.10 to 0.11 Updates the requirements on [env_logger](https://github.com/rust-cli/env_logger) to permit the latest version. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.11.8) --- updated-dependencies: - dependency-name: env_logger dependency-version: 0.11.8 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly_static/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index 77debc40..0d61c992 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -34,7 +34,7 @@ reqwest = { version = "0.12", features = ["blocking"] } [dev-dependencies] plotly_static = { path = "." } ndarray = { version = "0.16" } -env_logger = "0.10" +env_logger = "0.11" clap = { version = "4.0", features = ["derive"] } [build-dependencies] From 98aafd72ac3e05a0d0fd92a3bf5d72f73b342266 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 04:55:42 +0000 Subject: [PATCH 05/10] Update dirs requirement from 5.0 to 6.0 --- updated-dependencies: - dependency-name: dirs dependency-version: 6.0.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly_static/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index 0d61c992..75f9d086 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -40,6 +40,6 @@ clap = { version = "4.0", features = ["derive"] } [build-dependencies] tokio = { version = "1", features = ["full"] } anyhow = "1.0" -dirs = "5.0" +dirs = "6.0" zip = "4.0" webdriver-downloader = "0.16" From b1b0c50760299b071b121e5588a436f7ae3b8ffc Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:45:46 +0200 Subject: [PATCH 06/10] cleanup readme Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- .../consistent_static_format_export/README.md | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/examples/customization/consistent_static_format_export/README.md b/examples/customization/consistent_static_format_export/README.md index f8fc63ba..0bdbf82b 100644 --- a/examples/customization/consistent_static_format_export/README.md +++ b/examples/customization/consistent_static_format_export/README.md @@ -4,22 +4,9 @@ This example demonstrates exporting a plot to SVG, PNG, and PDF using plotly.rs This example is based on [GitHub Issue #171](https://github.com/plotly/plotly.rs/issues/171). - -**Summary:** - For consistent font rendering across browsers and export formats, always set the `font.family` property explicitly in your plot configuration. Relying on default or generic font settings can lead to differences in appearance, especially for font size and legend layout, depending on the browser or export backend. -**Recommendation:** - -Always set the `font.family` property (e.g., to `"Times New Roman, serif"`) for all text elements (titles, axes, legends) to ensure consistent results in all output formats. - -## Overview - -This example creates a line and scatter plot with custom styling, including: -- Large font sizes for titles, legends, and axes -- Custom legend positioning and styling -- Border shapes around the plot -- Export to multiple formats (PDF, SVG, PNG) +The issue reported in [#171](https://github.com/plotly/plotly.rs/issues/171)is solved when the `font.family` property is set explicitly (e.g., to `"Times New Roman, serif"`) for all text elements (titles, axes, legends) which ensures consistent results in all output formats accross different browsers. ## Running the Example @@ -29,6 +16,6 @@ cargo run ``` This will generate three output files: -- `Data_plot.pdf` - PDF format (typically renders correctly) -- `Data_plot.svg` - SVG format (may have font/legend issues) -- `Data_plot.png` - PNG format (typically renders correctly) +- `Data_plot.png` +- `Data_plot.svg` - will render fonts differently when compared with PNG if font family not fully specified +- `Data_plot.pdf` - uses SVG for PDF generation and will inherit the same issue as SVG From 68cd7da4cb8e0f3881ea78a1d67e0648defa1416 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 03:30:54 +0000 Subject: [PATCH 07/10] Update darling requirement from 0.20 to 0.21 Updates the requirements on [darling](https://github.com/TedDriggs/darling) to permit the latest version. - [Release notes](https://github.com/TedDriggs/darling/releases) - [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md) - [Commits](https://github.com/TedDriggs/darling/compare/v0.20.0...v0.21.0) --- updated-dependencies: - dependency-name: darling dependency-version: 0.21.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly_derive/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly_derive/Cargo.toml b/plotly_derive/Cargo.toml index 306fac7f..bc6d7659 100644 --- a/plotly_derive/Cargo.toml +++ b/plotly_derive/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["plot", "chart", "plotly"] quote = "1" syn = "2" proc-macro2 = "1" -darling = "0.20" +darling = "0.21" [lib] proc-macro = true From 597c7379e95fe4917fac6786aec8469c129c515f Mon Sep 17 00:00:00 2001 From: Andrei NG <8067229+andrei-ng@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:42:15 +0200 Subject: [PATCH 08/10] fix typo --- .../customization/consistent_static_format_export/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/customization/consistent_static_format_export/README.md b/examples/customization/consistent_static_format_export/README.md index 0bdbf82b..b40a40ba 100644 --- a/examples/customization/consistent_static_format_export/README.md +++ b/examples/customization/consistent_static_format_export/README.md @@ -6,7 +6,7 @@ This example is based on [GitHub Issue #171](https://github.com/plotly/plotly.rs For consistent font rendering across browsers and export formats, always set the `font.family` property explicitly in your plot configuration. Relying on default or generic font settings can lead to differences in appearance, especially for font size and legend layout, depending on the browser or export backend. -The issue reported in [#171](https://github.com/plotly/plotly.rs/issues/171)is solved when the `font.family` property is set explicitly (e.g., to `"Times New Roman, serif"`) for all text elements (titles, axes, legends) which ensures consistent results in all output formats accross different browsers. +The issue reported in [#171](https://github.com/plotly/plotly.rs/issues/171)is solved when the `font.family` property is set explicitly (e.g., to `"Times New Roman, serif"`) for all text elements (titles, axes, legends) which ensures consistent results in all output formats across different browsers. ## Running the Example From 7578677646b8c48d28a0a2fee3ee91142bad34fa Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Sat, 12 Jul 2025 10:59:07 +0200 Subject: [PATCH 09/10] fix plotly_static docs.rs build Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- .github/workflows/release.yml | 5 +++-- CHANGELOG.md | 12 ++++++++---- plotly/Cargo.toml | 2 +- plotly_static/Cargo.toml | 6 +++++- plotly_static/README.md | 2 +- plotly_static/src/lib.rs | 2 +- 6 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33c8c1f3..e32ec3a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,9 @@ jobs: - run: cargo publish --allow-dirty -p plotly_kaleido - run: sleep 10 - run: cargo publish --allow-dirty -p plotly - - run: sleep 10 - - run: cargo publish --allow-dirty -p plotly_static --features webdriver_download,chromedriver + # plotly_static is not part of the same ecosystem yet so it doesn't use the same TOKEN + # - run: sleep 10 + # - run: cargo publish --allow-dirty -p plotly_static --features webdriver_download,chromedriver create-gh-release: name: Deploy to GH Releases diff --git a/CHANGELOG.md b/CHANGELOG.md index 14bcc44b..7b09fe5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.3] - 2025-xx-xx -## [0.13.2] - 2025-xx-xx -- [[#327](https://github.com/plotly/plotly.rs/pull/327)] Fix book broken link +### Fixed +### Changed -### Fixed -- [[#326](https://github.com/plotly/plotly.rs/pull/326)] Fix book badges +## [0.13.2] - 2025-07-12 + +### Fixed +- [[#336](https://github.com/plotly/plotly.rs/pull/336)] Fix `plotly_static` docs.rs build +- [[#327](https://github.com/plotly/plotly.rs/pull/327)] Fix book broken link ## [0.13.1] - 2025-07-07 diff --git a/plotly/Cargo.toml b/plotly/Cargo.toml index 6f0c93a5..0162c8d7 100644 --- a/plotly/Cargo.toml +++ b/plotly/Cargo.toml @@ -51,7 +51,7 @@ dyn-clone = "1" erased-serde = "0.4" image = { version = "0.25", optional = true } plotly_derive = { version = "0.13", path = "../plotly_derive" } -plotly_static = { version = "0.0.1", path = "../plotly_static", optional = true } +plotly_static = { version = "0.0.2", path = "../plotly_static", optional = true } plotly_kaleido = { version = "0.13", path = "../plotly_kaleido", optional = true } ndarray = { version = "0.16", optional = true } once_cell = "1" diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index 75f9d086..a2f64c4f 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plotly_static" -version = "0.0.1" +version = "0.0.2" description = "Export Plotly graphs to static images using WebDriver" authors = ["Andrei Gherghescu andrei-ng@protonmail.com"] license = "MIT" @@ -43,3 +43,7 @@ anyhow = "1.0" dirs = "6.0" zip = "4.0" webdriver-downloader = "0.16" + +# Needed for docs.rs to build the documentation +[package.metadata.docs.rs] +features = ["chromedriver"] \ No newline at end of file diff --git a/plotly_static/README.md b/plotly_static/README.md index 3fd15c7b..30240329 100644 --- a/plotly_static/README.md +++ b/plotly_static/README.md @@ -56,7 +56,7 @@ Add to your `Cargo.toml`: ```toml [dependencies] -plotly_static = { version = "0.0.1", features = ["chromedriver", "webdriver_download"] } +plotly_static = { version = "0.0.2", features = ["chromedriver", "webdriver_download"] } serde_json = "1.0" ``` diff --git a/plotly_static/src/lib.rs b/plotly_static/src/lib.rs index a2644703..38cded1f 100644 --- a/plotly_static/src/lib.rs +++ b/plotly_static/src/lib.rs @@ -74,7 +74,7 @@ //! //! ```toml //! [dependencies] -//! plotly_static = { version = "0.0.1", features = ["chromedriver", "webdriver_download"] } +//! plotly_static = { version = "0.0.2", features = ["chromedriver", "webdriver_download"] } //! ``` //! //! ## Advanced Usage From dcbfd10bd537d1bd327dff014c43f5ac0fbb951f Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Sat, 12 Jul 2025 11:09:01 +0200 Subject: [PATCH 10/10] bump versions Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- plotly/Cargo.toml | 2 +- plotly_derive/Cargo.toml | 2 +- plotly_kaleido/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plotly/Cargo.toml b/plotly/Cargo.toml index 0162c8d7..12ce6aea 100644 --- a/plotly/Cargo.toml +++ b/plotly/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plotly" -version = "0.13.1" +version = "0.13.2" description = "A plotting library powered by Plotly.js" authors = [ "Ioannis Giagkiozis ", diff --git a/plotly_derive/Cargo.toml b/plotly_derive/Cargo.toml index bc6d7659..3951417e 100644 --- a/plotly_derive/Cargo.toml +++ b/plotly_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plotly_derive" -version = "0.13.1" +version = "0.13.2" description = "Internal proc macro crate for Plotly-rs." authors = ["Ioannis Giagkiozis "] license = "MIT" diff --git a/plotly_kaleido/Cargo.toml b/plotly_kaleido/Cargo.toml index 002774b0..244de21e 100644 --- a/plotly_kaleido/Cargo.toml +++ b/plotly_kaleido/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plotly_kaleido" -version = "0.13.1" +version = "0.13.2" description = "Additional output format support for plotly using Kaleido" authors = [ "Ioannis Giagkiozis ",