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

Fix setting of legend font via legend_font #3934

Merged
merged 5 commits into from Nov 11, 2021
Merged

Conversation

BeastyBlacksmith
Copy link
Member

Reported on slack (https://julialang.slack.com/archives/C6E4SU1D3/p1636254485054400) #2854 broke setting the legend font via plot(1:5, legendfont = font(8))

Furthermore this makes sp[:legend_font] the single point of truth for the legend font properties, since having both sp[:legend_font] and e.g. sp[:legend_font_color] is a bit dangerous since they can get out of sync pretty easily especially with property matching and so forth.. In the future we should remove them entirely from the subplot attributes.

@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #3934 (c4d3502) into master (6df1f38) will decrease coverage by 0.30%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3934      +/-   ##
==========================================
- Coverage   62.80%   62.50%   -0.31%     
==========================================
  Files          29       29              
  Lines        7587     7270     -317     
==========================================
- Hits         4765     4544     -221     
+ Misses       2822     2726      -96     
Impacted Files Coverage Δ
src/components.jl 68.31% <75.00%> (-0.44%) ⬇️
src/args.jl 71.97% <100.00%> (-0.42%) ⬇️
src/backends/gr.jl 87.99% <100.00%> (-0.51%) ⬇️
src/pipeline.jl 94.47% <100.00%> (+0.19%) ⬆️
src/utils.jl 49.68% <100.00%> (+0.06%) ⬆️
src/backends/unicodeplots.jl 74.13% <0.00%> (-1.26%) ⬇️
src/backends/pgfplotsx.jl 60.18% <0.00%> (-0.92%) ⬇️
src/output.jl 28.09% <0.00%> (-0.59%) ⬇️
... and 18 more

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 9d3ce54...c4d3502. Read the comment docs.

@BeastyBlacksmith BeastyBlacksmith merged commit e9ae75d into master Nov 11, 2021
@BeastyBlacksmith BeastyBlacksmith deleted the bbs/legend-struct branch November 11, 2021 08:48
isentropic pushed a commit to isentropic/Plots.jl that referenced this pull request Jan 16, 2022
* find pipeline spot

* better spot

* construct font

* set font and matching

* respect defaults
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.

None yet

1 participant