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

Task 2 Implementation for Simplices #20

Closed
wants to merge 11 commits into from
Closed

Conversation

paurierap
Copy link
Collaborator

This one's the good one! Implementation of Task 2 for simplices. It's only missing to implement cell field plots for quadrilaterals (or higher polytopes).

paurierap added 6 commits July 5, 2021 22:19
This implementation is capable of plotting every figure in #Task2.
New approach to plot cell fields in 3D grids along with subtle modifications.
Change single color edges to avoid missing corners.
@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2021

Codecov Report

Merging #20 (8b3fecd) into gsoc2021-master (3ddfea9) will increase coverage by 0.65%.
The diff coverage is 94.77%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           gsoc2021-master      #20      +/-   ##
===================================================
+ Coverage            94.11%   94.77%   +0.65%     
===================================================
  Files                    1        4       +3     
  Lines                   34      134     +100     
===================================================
+ Hits                    32      127      +95     
- Misses                   2        7       +5     
Impacted Files Coverage Δ
src/conversions.jl 92.94% <92.94%> (ø)
src/cells.jl 97.36% <97.36%> (ø)
src/edges.jl 100.00% <100.00%> (ø)
src/vertices.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ddfea9...8b3fecd. Read the comment docs.

Implement dg_mesh, introduce vertices, add all attributes to plotting functions, remove shading.
New approach to plot 3D grids
@fverdugo fverdugo self-requested a review August 2, 2021 15:04
src/edges.jl Outdated
function Makie.plot!(plot::Edges{<:Tuple{Grid}})

# Retrieve plot arguments:
grid = plot[:grid][]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de-referencing the observable with [] will possibly lead to problems in reactive animations.

src/faces.jl Outdated
end
end
end
Makie.mesh!(plot, grid_;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @paurierap, I think I am commenting an outdated code... but are you still passing all the list of attributes when you interface to Makie.mesh!, Makie.linesegments! and Makie.scatter!, as done here for Makie.mesh!?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @ericneiva, I am still passing a list of attributes. If you know a better way to do it, let me know!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wonder if you can use function ‘with_theme’ to avoid passing all attributes: http://makie.juliaplots.org/stable/theming.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I will give it a look to see if it fits!

@fverdugo
Copy link
Member

Outdated by issue #23

@fverdugo fverdugo closed this Aug 10, 2021
@paurierap paurierap deleted the paur-task2 branch August 22, 2021 12:48
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.

4 participants