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

Consistently handle multi-axis positioning and labels #5827

Merged
merged 10 commits into from
Jul 25, 2023

Conversation

philippjfr
Copy link
Member

Supersedes #5816

@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2023

Codecov Report

Merging #5827 (a36141a) into main (2ab0ebf) will increase coverage by 0.00%.
The diff coverage is 93.39%.

@@           Coverage Diff           @@
##             main    #5827   +/-   ##
=======================================
  Coverage   88.23%   88.24%           
=======================================
  Files         309      309           
  Lines       63866    63915   +49     
=======================================
+ Hits        56354    56399   +45     
- Misses       7512     7516    +4     
Flag Coverage Δ
ui-tests 23.37% <12.26%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
holoviews/tests/plotting/bokeh/test_multiaxis.py 97.61% <90.90%> (-0.67%) ⬇️
holoviews/plotting/bokeh/element.py 88.04% <96.00%> (-0.02%) ⬇️
holoviews/plotting/plot.py 91.71% <100.00%> (ø)

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

@jlstevens
Copy link
Contributor

Thanks!

I think this is more consistent and we can now delete the old axis swapping code that I think is now dead code because yaxis is no longer propagated to the overlay level.

Would be good to get this fix into this release even though I don't think we can claim swapping axes is supported until labels are also fixed...

@@ -839,7 +853,8 @@ def _update_plot(self, key, plot, element=None):
Updates plot parameters on every frame
"""
plot.update(**self._plot_properties(key, element))
self._update_labels(key, plot, element)
if not self.multi_y:
self._update_labels(key, plot, element)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should open an issue about this detailing what would be required...

@jlstevens
Copy link
Contributor

With the labels fixed, I can go update the docs to say the yaxis option (and the label/fontsize) options are now supported!

Other than some of the known limitations (streaming data, fancier range streams, no dynamic labels) I think this nicely rounds out multi axis support for this release.

@philippjfr philippjfr changed the title Consistently handle axis positioning Consistently handle multi-axis positioning and labels Jul 25, 2023
Copy link
Contributor

@jlstevens jlstevens left a comment

Choose a reason for hiding this comment

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

Happy to see this merged once some of the windows tests go green.

@philippjfr philippjfr merged commit 0bcecd1 into main Jul 25, 2023
13 of 14 checks passed
@philippjfr philippjfr deleted the multi_y_axis_labels branch July 25, 2023 15:25
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.

3 participants