From 22fd81456e095391b8da3e04e3009831ae14e27c Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Mon, 10 Aug 2026 13:39:29 +0200 Subject: [PATCH 1/2] Update dependencies --- Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c825bd2..f811f31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,18 +10,18 @@ documentation = "https://docs.rs/matplotlib" license = "MIT" keywords = ["plot", "graph", "curve", "surface"] categories = ["science", "visualization", "mathematics", "graphics"] -rust-version = "1.85" +rust-version = "1.87" [dependencies] -nalgebra = { version = ">=0.30, <0.35", default-features = false, optional = true } -numpy = "0.28.0" +nalgebra = { version = "0.35.0", default-features = false, optional = true } +numpy = "0.29.0" #numpy = { version = "0.28", git = "https://github.com/Chris00/rust-numpy.git" } ndarray = "0.17.2" curve-sampling = { version = "0.6", optional = true } num-complex = { version = "0.4.6", optional = true } [dependencies.pyo3] -version = "0.28.2" +version = "0.29.2" features = ["auto-initialize"] [features] @@ -30,9 +30,9 @@ nalgebra = ["dep:nalgebra", "numpy/nalgebra"] [dev-dependencies] doc-comment = "0.3.4" -polars-core = { version = "0.53.0", features = ["fmt"] } +polars-core = { version = "0.54.3", features = ["fmt"] } anyhow = "1.0.102" -rand = "0.10.0" +rand = "0.10.1" rand_distr = "=0.6.0" [package.metadata.docs.rs] From c05e2f05637e7d65b6a32cb8895c2e45dcf28125 Mon Sep 17 00:00:00 2001 From: LoicPil Date: Tue, 11 Aug 2026 15:06:40 +0200 Subject: [PATCH 2/2] feat(axes): xscale support --- src/axes.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/axes.rs b/src/axes.rs index d4a5561..4e948a5 100644 --- a/src/axes.rs +++ b/src/axes.rs @@ -307,6 +307,13 @@ impl Axes { meth!(self.ax, set_title, (txt.as_ref(),)).unwrap(); self } + + /// Set the xaxis' scale. Possible values for `v` are "linear", + /// "log", "symlog", "logit",... + pub fn set_xscale(&mut self, v: &str) -> &mut Self { + meth!(self.ax, set_xscale, (v,)).unwrap(); + self + } /// Set the yaxis' scale. Possible values for `v` are "linear", /// "log", "symlog", "logit",...