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

add scatter3d docs and fix colorbar title #5418

Merged
merged 10 commits into from
Jan 15, 2023
Merged

add scatter3d docs and fix colorbar title #5418

merged 10 commits into from
Jan 15, 2023

Conversation

MarcSkovMadsen
Copy link
Collaborator

@MarcSkovMadsen MarcSkovMadsen commented Sep 3, 2022

This addresses #5416 and #5423 a bit. Closes #4952

@philippjfr
Copy link
Member

Looks good. Just one comment, there's little point adding user docstrings to plotting classes since no one directly uses them.

@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Sep 3, 2022

Where should they be added then @philippjfr. I am a new contributor to HoloViews. Currently Scatter3D does not show any docstring and I am not capable of navigating the code yet.

@philippjfr
Copy link
Member

The element is the right place. So this PR is totally fine, just doesn't have to be on the plotting class too.

@MarcSkovMadsen
Copy link
Collaborator Author

I don't understand. Could you be more specific?

@philippjfr
Copy link
Member

Oh wait sorry, this PR is only on the plotting classes. It'll have to be in the holoviews/element directory.

@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Sep 3, 2022

For me this is the element. But that docstring is not shown when I use hv.help(hv.Scatter3D).

image

image

It is shown when I hover though

image

Example - Matplotlib
--------------------

.. code-block::
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously I have put code blocks into >>> lines. But they are hard to copy and use directly. VS Code actually renders .. code-block:: nicely. So this is better to use.

@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2022

Codecov Report

Merging #5418 (1918c2b) into main (ccd0bc8) will increase coverage by 0.00%.
The diff coverage is 93.33%.

@@           Coverage Diff           @@
##             main    #5418   +/-   ##
=======================================
  Coverage   88.23%   88.24%           
=======================================
  Files         302      302           
  Lines       62234    62260   +26     
=======================================
+ Hits        54914    54939   +25     
- Misses       7320     7321    +1     
Impacted Files Coverage Δ
holoviews/element/chart3d.py 85.29% <ø> (ø)
holoviews/plotting/plotly/element.py 85.15% <81.81%> (+<0.01%) ⬆️
...oloviews/tests/plotting/plotly/test_elementplot.py 100.00% <100.00%> (ø)

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

@philippjfr
Copy link
Member

Okay, we'll have to take a look at hv.help then. Don't love the output in any case.

@MarcSkovMadsen MarcSkovMadsen changed the title add scatter3d docs add scatter3d docs and fix colorbar title Sep 4, 2022
elif title.startswith("dim('") and title.endswith("')"):
title = title[5:-2]
else:
title = title[1:-1]
Copy link
Collaborator Author

@MarcSkovMadsen MarcSkovMadsen Sep 4, 2022

Choose a reason for hiding this comment

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

I don't know why title[1:-1] is a valid value from time to time. But it was there before my time.

Copy link
Member

@hoxbro hoxbro Sep 5, 2022

Choose a reason for hiding this comment

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

Probably because of something like this title = "'An awesome title'"

Copy link
Member

Choose a reason for hiding this comment

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

That's pretty strange!

@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Sep 4, 2022

I don't plan to do more here. I hope someone with the knowledge will see they can quickly finalize and it will be a big step forward for Scatter3D to get things documented and working.

@jlstevens
Copy link
Contributor

jlstevens commented Sep 26, 2022

@philippjfr Looks close to being ready for the imminent release and I'm happy to merge once the tests are green. From the look of it, the unit tests need updating but I am confused as to why the expected strings are now dictionaries?

@jbednar
Copy link
Member

jbednar commented Oct 14, 2022

@MarcSkovMadsen , will you be able to address those test failures (to do with the titles)? It would be great to get this merged.

@maximlt maximlt modified the milestones: 1.15.1, 1.15.2 Oct 14, 2022
@hoxbro hoxbro modified the milestones: 1.15.x, 1.15.4 Jan 14, 2023
@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Jan 14, 2023

As stated in the comments I dont know how to fix this. I need help.

@hoxbro
Copy link
Member

hoxbro commented Jan 14, 2023

I'm not sure I am following you, didn't my last commit finalize your tests? Or are you talking about another comment?

@MarcSkovMadsen
Copy link
Collaborator Author

Sorry and thanks. I was replying to @jbednar old comment.

@hoxbro
Copy link
Member

hoxbro commented Jan 15, 2023

The failed mac os test on Python 3.11 yesterday was because a debug version of Python was being installed:
python=3.11.0=h4150a38_1_debug_cpython
https://github.com/holoviz/holoviews/actions/runs/3918675139/jobs/6699840165#step:2:4355

This should be fixed now. See conda-forge/python-feedstock#597 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plotly Scatter 3D not rendering colorbar title correctly
7 participants