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

Validate calculated log canvas range #1154

Merged
merged 2 commits into from
Dec 16, 2022
Merged

Validate calculated log canvas range #1154

merged 2 commits into from
Dec 16, 2022

Conversation

ianthomas23
Copy link
Member

Fixes #340, producing a sensible error message rather than an empty plot.

Previously a Canvas validated its x_range and y_range if they were explicitly specified by the user. But if they were calculated from the data limits, no validation occurred.

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1154 (340656f) into master (38afcc7) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1154      +/-   ##
==========================================
+ Coverage   85.35%   85.38%   +0.02%     
==========================================
  Files          35       35              
  Lines        7807     7812       +5     
==========================================
+ Hits         6664     6670       +6     
+ Misses       1143     1142       -1     
Impacted Files Coverage Δ
datashader/core.py 88.05% <100.00%> (+0.28%) ⬆️
datashader/data_libraries/dask.py 94.54% <100.00%> (+0.05%) ⬆️
datashader/data_libraries/pandas.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ianthomas23 ianthomas23 merged commit 0b609ba into holoviz:master Dec 16, 2022
@ianthomas23 ianthomas23 deleted the log_axis_bug branch December 16, 2022 08:50
@ianthomas23 ianthomas23 added this to the v0.14.4 milestone Jan 19, 2023
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.

Bug when using x_axis_type='log' and y_axis_type='log'
2 participants