Skip to content

Commit 1133e2f

Browse files
authored
Fix plotting bug due to empty Legend with CairoMakie 0.15 (#52)
* fix plot_fit_on_data() legend bug due to new makie release * bump version
1 parent b86ddae commit 1133e2f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DataDrivenEnzymeRateEqs"
22
uuid = "bf31c7e1-2152-4d3a-bc7a-576095d562b2"
33
authors = ["Denis Titov [email protected] and contributors"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
CMAEvolutionStrategy = "8d3b24bd-414e-49e0-94fb-163cc3a3e411"

src/plotting_functions.jl

Lines changed: 3 additions & 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+
#TODO: remove once Makie Legend bug is fixed
129130
isempty(metab_conc_label) && (metab_conc_label = " ")
130131
#plot data and fit
131132
scatter!(ax, data_for_scatter[!, x_axis_metabolite],
@@ -147,6 +148,8 @@ function plot_fit_on_data(
147148
str = str * ", "
148149
end
149150
end
151+
#TODO: remove once Makie Legend bug is fixed
152+
isempty(str) && (str = "No var metabs")
150153
str
151154
end
152155
leg = Legend(grid_layout[1, 2],

0 commit comments

Comments
 (0)