Skip to content

Commit

Permalink
plot: fix legend overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Dec 1, 2023
1 parent 2c52d7f commit 5942b9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ pub fn create(
let num_coords = barcodes.rows.len();

// longest sequence text id (in pixels)
let longest_sequence_id = sequence_ids
let mut default_ids =
vec!["Reference", "Private"].into_iter().map(String::from).collect_vec();
let mut sequence_ids_length_check = sequence_ids.clone();
sequence_ids_length_check.append(&mut default_ids);

let longest_sequence_id = sequence_ids_length_check
.iter()
.map(|id| {
text::to_image(
Expand Down

0 comments on commit 5942b9d

Please sign in to comment.