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

Add plot recipe #182

Merged
merged 8 commits into from
Feb 10, 2024
Merged

Add plot recipe #182

merged 8 commits into from
Feb 10, 2024

Conversation

hyrodium
Copy link
Collaborator

@hyrodium hyrodium commented Feb 8, 2024

julia> using IntervalSets, Plots

julia> plot(iv"(1,2)"); plot!(iv"[3,6)"); plot!(iv"[5,7)")

image

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (13c76e1) 99.11% compared to head (65e47ff) 98.84%.
Report is 8 commits behind head on master.

Files Patch % Lines
ext/IntervalSetsRecipesBaseExt.jl 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   99.11%   98.84%   -0.27%     
==========================================
  Files           6        6              
  Lines         225      260      +35     
==========================================
+ Hits          223      257      +34     
- Misses          2        3       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hyrodium
Copy link
Collaborator Author

hyrodium commented Feb 9, 2024

Note that the open endpoints are not transparent.

julia> using IntervalSets, Plots

julia> plot(iv"[1,3]"); plot!(iv"(2,4)")

image

The offset keyword argument is useful for better visualization.

julia> using IntervalSets, Plots

julia> plot(iv"[1,3]"); plot!(iv"(2,4)"; offset=-0.1, ylims=(-1,1))

image

@hyrodium hyrodium merged commit 2779dd1 into JuliaMath:master Feb 10, 2024
10 of 13 checks passed
@hyrodium hyrodium mentioned this pull request Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant