plotly / plotly.rs

Plotly for Rust
https://docs.rs/plotly
MIT License
1.01k stars 98 forks source link

Configure more than 8 axes? #184

Open forgemo opened 3 months ago

forgemo commented 3 months ago

I do have one plot with 15 sub-plots.

I would like all of them to "match" the first one.

Layout::new()
            .x_axis2(Axis::new().matches(true))
            .x_axis3(Axis::new().matches(true))
            .x_axis4(Axis::new().matches(true))
            .x_axis5(Axis::new().matches(true))
            .x_axis6(Axis::new().matches(true))
            .x_axis7(Axis::new().matches(true))
            .x_axis8(Axis::new().matches(true))

How can I configure the remaining ones? e.g. There is no .x_axis9(...) or .x_axis10(...) setter. Is there a more generic way to do it for an arbitrary axes count?