Skip to content

Commit

Permalink
Merge pull request #903 from shawnlaffan/issue_933_sp_branch_colouring
Browse files Browse the repository at this point in the history
GUI Spatial tab: support branch colouring using any spatial output across the project
  • Loading branch information
shawnlaffan authored Dec 31, 2023
2 parents 8278513 + 6c14981 commit c4485d5
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 112 deletions.
9 changes: 8 additions & 1 deletion lib/Biodiverse/GUI/Legend.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,13 @@ sub set_text_marks_for_labels {
return;
}

sub set_log_mode {
croak "boolean arg not passed"
if @_ < 2;
my ($self, $bool) = @_;

return $self->{log_mode} = $bool ? 1 : 0;
}

sub set_log_mode_on {
my ($self) = @_;
Expand Down Expand Up @@ -1225,7 +1232,7 @@ sub set_colour_mode_from_list_and_index {
$self->{categorical}{labels} = $labels;
foreach my $key (keys %$colours) {
my $colour = $colours->{$key};
$colours->{$key} => Gtk2::Gdk::Color->parse($colour);
$colours->{$key} = Gtk2::Gdk::Color->parse($colour);
}
$self->{categorical}{colours} = $colours;
}
Expand Down
Loading

0 comments on commit c4485d5

Please sign in to comment.