Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

avoid crash and provide a simple solution for very small log scales#116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
elwerene wants to merge4 commits intoplotters-rs:master
base:master
Choose a base branch
Loading
fromelwerene:fix-log-scale

Conversation

elwerene
Copy link
Contributor

When using a log scale from 2 to 8, plotters crashes as tier_1 is zero and is later used as divisor. I made a simple fix by checking for zero tier_1 and providing a simple scale which iterates the integers between both numbers.

I know this is not a complete fix of the problem, especially as a small scale e.g. 0.2 to 0.8 would not show any grid lines, but the best idea a came up with at the moment and it always prevents the crash.

Sorry I had to close (#115) and reopen the pull request, but I did more work and just merging master would be wrong.

nielsle reacted with heart emoji
@codecov
Copy link

codecovbot commentedMar 13, 2020
edited
Loading

Codecov Report

Merging#116 intomaster willincrease coverage by0.78%.
The diff coverage is0.00%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #116      +/-   ##==========================================+ Coverage   66.24%   67.03%   +0.78%==========================================  Files          53       53                Lines        5134     5129       -5     ==========================================+ Hits         3401     3438      +37+ Misses       1733     1691      -42
Impacted FilesCoverage Δ
src/coord/logarithmic.rs0.00% <0.00%> (ø)
src/chart/builder.rs82.31% <0.00%> (+0.49%)⬆️
src/chart/context.rs78.66% <0.00%> (+0.66%)⬆️
src/coord/datetime.rs81.22% <0.00%> (+0.74%)⬆️
src/coord/ranged.rs43.47% <0.00%> (+1.08%)⬆️
src/drawing/backend_impl/cairo.rs89.74% <0.00%> (+1.46%)⬆️
src/drawing/backend_impl/bitmap.rs84.84% <0.00%> (+1.78%)⬆️
src/style/size.rs78.00% <0.00%> (+2.00%)⬆️
src/drawing/backend_impl/svg.rs75.79% <0.00%> (+2.31%)⬆️
src/style/font/font_desc.rs50.00% <0.00%> (+2.32%)⬆️
... and3 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update5cf3bfd...869f6fa. Read thecomment docs.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@elwerene

[8]ページ先頭

©2009-2025 Movatter.jp