-
-
Notifications
You must be signed in to change notification settings - Fork 313
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 Tooltip recipe for DataInspector #2095
Conversation
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(display(fig))
|
closes #2092 |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Here's a list of changed/moved attributes for Styling attributes
Notes:
Internal Attributes
Notes:
|
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! :) I just noticed that the tooltip starts as visible, which then hangs around in the bottom corner... Adding visible=false
to tooltip in DataInspector
seems to fix it without staying invisible, so I pushed that change!
I can update the refimages once CI is green
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Changes: - add `inspector_hover` attribute to allow replacing `show_data` on a per-plot basis - add `inspector_label` attribute to allows for per-plot labels - add `inspector_clear` attribute to allow for custom cleanup code (e.g. for an indicator visualization) - adjust backends to ignore those attributes for rendering - minor cleanup in `pick_sorted`
Missing reference imagesFound 1 new images without existing references. |
* add Tooltip recipe * use Tooltip in DataInspector * cleanup & restore useful indicators * fix typo Co-authored-by: Anshul Singhvi <asinghvi17@simons-rock.edu> * fix tooltip alignment * allow disabling of indicators * cleanup * update news * add docs * add test * adjust tooltip args and fix indicator duplication * fix indicator visibility & improve show_poly * fix docs? * fix error * split news entry [skip ci] * remove reused observables * add align attribute * fix typo * start tooltip invisible * manually merge MakieOrg#2261 (DataInspector callback attributes) Changes: - add `inspector_hover` attribute to allow replacing `show_data` on a per-plot basis - add `inspector_label` attribute to allows for per-plot labels - add `inspector_clear` attribute to allow for custom cleanup code (e.g. for an indicator visualization) - adjust backends to ignore those attributes for rendering - minor cleanup in `pick_sorted` * update docs * update NEWS Co-authored-by: Anshul Singhvi <asinghvi17@simons-rock.edu> Co-authored-by: Simon <sdanisch@protonmail.com>
Description
This adds a
tooltip(anchor, text)
recipe which places some text in a box pointing to the anchor position. Here's an example with a few tooltips that I corrently have as a refimg test:I'm planning for this to replace the tooltips created by
DataInspector
which should also make it easier to create persistent tooltips.DataInspector:
Type of change
Checklist
TODO
add white outline to text in DataInspector tooltips by default... maybecontourf
tooltip alignment (and others if there are any)