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

linestyle improvements #94

Merged
merged 4 commits into from
Nov 17, 2022
Merged

linestyle improvements #94

merged 4 commits into from
Nov 17, 2022

Conversation

hexaeder
Copy link
Collaborator

attempt to close #93

I figured #93 has two parts:

  • linestyles<:Vector does not work for linesegments. I don't like to automaticially use beziersegments in that case. But the error explains that option now. I added a @test_broken item so hopefully we will notice if the corresponding makie issue gets resolved: Allow vector for linestyle in linesegments Makie.jl#1598
  • linestyles<:Vector{Number} should not be split among edges if it happens to be the same length as the number of edges. I added a codepath to handle that case.

Copy link

@lmshk lmshk left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

test/runtests.jl Outdated
DiGraph([Edge(1 => 2), Edge(2 => 3)]),
edge_attr = (; linestyle = [:dot, :dash]),
edge_plottype = :beziersegments,
)
Copy link

Choose a reason for hiding this comment

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

Maybe add one with curves just to be safe? ([Edge(1 => 2), Edge(2 => 1)] like above.)

@codecov-commenter
Copy link

Codecov Report

Base: 80.03% // Head: 80.28% // Increases project coverage by +0.24% 🎉

Coverage data is based on head (37aaa49) compared to base (061addf).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
+ Coverage   80.03%   80.28%   +0.24%     
==========================================
  Files           4        4              
  Lines         556      563       +7     
==========================================
+ Hits          445      452       +7     
  Misses        111      111              
Impacted Files Coverage Δ
src/recipes.jl 97.85% <100.00%> (+0.06%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hexaeder hexaeder merged commit 819576c into master Nov 17, 2022
@hexaeder hexaeder deleted the hw/linestyles branch November 17, 2022 09:32
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.

Allow vector for linestyle in linesegments Edge linestyles not always working
3 participants