Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix LQ plot recipes #123

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions ext/LegendSpecFitsRecipesBaseExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,8 @@

@series begin
seriestype := :histogram2d
dt_dep, lq_dep
idxs_finite = findall(isfinite.(dt_dep) .&& isfinite.(lq_dep))
dt_dep[idxs_finite], lq_dep[idxs_finite]

Check warning on line 1419 in ext/LegendSpecFitsRecipesBaseExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LegendSpecFitsRecipesBaseExt.jl#L1418-L1419

Added lines #L1418 - L1419 were not covered by tests
end
elseif plot_type == :whole
# Create 2D histogram with all data
Expand All @@ -1434,7 +1435,8 @@

@series begin
seriestype := :histogram2d
dt_eff, lq_e_corr
idxs_finite = findall(isfinite.(dt_eff) .&& isfinite.(lq_e_corr))
dt_eff[idxs_finite], lq_e_corr[idxs_finite]

Check warning on line 1439 in ext/LegendSpecFitsRecipesBaseExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LegendSpecFitsRecipesBaseExt.jl#L1438-L1439

Added lines #L1438 - L1439 were not covered by tests
end
end

Expand Down Expand Up @@ -1504,7 +1506,9 @@

@series begin
seriestype := :histogram2d
e_cal, lq_class
idxs_finite = findall(isfinite.(e_cal) .&& isfinite.(lq_class))
clims := (1, 5e3)
e_cal[idxs_finite], lq_class[idxs_finite]

Check warning on line 1511 in ext/LegendSpecFitsRecipesBaseExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LegendSpecFitsRecipesBaseExt.jl#L1509-L1511

Added lines #L1509 - L1511 were not covered by tests
end

@series begin
Expand Down
Loading