Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed Sep 19, 2024
1 parent 2d8efef commit 6c6ad71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ fn main() -> Result<(), StrError> {
];

// x ticks and labels
let ncol = data[0].len();
let ticks: Vec<_> = (1..(ncol + 1)).into_iter().collect();
let n = data.len();
let ticks: Vec<_> = (1..(n + 1)).into_iter().collect();
let labels = ["A", "B", "C", "D", "E"];

// boxplot object and options
Expand Down
4 changes: 2 additions & 2 deletions src/boxplot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use std::fmt::Write;
/// ];
///
/// // x ticks and labels
/// let ncol = data[0].len();
/// let ticks: Vec<_> = (1..(ncol + 1)).into_iter().collect();
/// let n = data.len();
/// let ticks: Vec<_> = (1..(n + 1)).into_iter().collect();
/// let labels = ["A", "B", "C", "D", "E"];
///
/// // boxplot object and options
Expand Down

0 comments on commit 6c6ad71

Please sign in to comment.