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

Alternative representation of GreenFunction boundaries in plots #255

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

pablosanjose
Copy link
Owner

@pablosanjose pablosanjose commented Mar 5, 2024

This replaces the boundary representation of GreenFunctions with translucent boxes over boundary cells and sites, in red by default. :boundarycolor and :boundaryopacity control their appearance. Also hide = :boundary removes them from the plot.

julia> g = LP.honeycomb() |> hopping(1, range = 1) |>
           attach(nothing, region = RP.circle(1, SA[2,3])) |> attach(nothing, region = RP.circle(1, SA[3,-3])) |>
           greenfunction(GS.Bands(subdiv(-π, π, 13), subdiv(-π, π, 13), boundary = 2=>-3));

julia> qplot(g, inspector = true, hide = nothing, children = (; sitecolor = :blue))

Screenshot 2024-03-07 at 11 35 05

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 82.22222% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 92.35%. Comparing base (2c6ebdc) to head (1396e22).
Report is 1 commits behind head on master.

Files Patch % Lines
src/solvers/selfenergy/schur.jl 0.00% 5 Missing ⚠️
src/apply.jl 85.71% 1 Missing ⚠️
src/show.jl 50.00% 1 Missing ⚠️
src/types.jl 80.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #255      +/-   ##
==========================================
+ Coverage   92.31%   92.35%   +0.04%     
==========================================
  Files          36       36              
  Lines        5883     5901      +18     
==========================================
+ Hits         5431     5450      +19     
+ Misses        452      451       -1     

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

@pablosanjose
Copy link
Owner Author

Note: in 1D lattices, the cells have no "volume", so they cannot be shaded. However, we still have boxes over boundary sites, here at x = -2

Screenshot 2024-03-07 at 11 37 29

@pablosanjose pablosanjose merged commit e2c81b4 into master Mar 7, 2024
9 checks passed
@pablosanjose pablosanjose mentioned this pull request Apr 25, 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.

2 participants