Skip to content

Commit 801dd20

Browse files
github-actions[bot]CompatHelper JuliaDenis-Titov
authored
CompatHelper: bump compat for CairoMakie to 0.15, (keep existing compat) (#49)
* CompatHelper: bump compat for CairoMakie to 0.15, (keep existing compat) * add try catch block to bypass Legend plotting as temp fix * add empty legend when there're no variable metabolites to avoid Makie failing * add empty label when no variable metabs to avoid makie Legend from failing --------- Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org> Co-authored-by: Denis Titov <75404066+Denis-Titov@users.noreply.github.com> Co-authored-by: Denis-Titov <titov@berkeley.edu>
1 parent 9d00f97 commit 801dd20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TestEnv = "1e6cf692-eddd-4d53-88a5-2d735e33781b"
1919
[compat]
2020
CMAEvolutionStrategy = "0.2.6"
2121
CSV = "0.10"
22-
CairoMakie = "0.11, 0.12"
22+
CairoMakie = "0.11, 0.12, 0.15"
2323
DataFrames = "1.6"
2424
HypothesisTests = "0.11"
2525
Statistics = "1.6"

src/plotting_functions.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function plot_fit_on_data(
126126
for metab in changing_metab_concs],
127127
", "
128128
)
129+
isempty(metab_conc_label) && (metab_conc_label = " ")
129130
#plot data and fit
130131
scatter!(ax, data_for_scatter[!, x_axis_metabolite],
131132
data_for_scatter.Rate, markersize = markersize, label = metab_conc_label)

0 commit comments

Comments
 (0)