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 support for vtkCornerAnnotations #2257

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

xavArtley
Copy link
Collaborator

plotter = pv.Plotter(shape=(2, 2))

plotter.subplot(0, 0)
plotter.add_text("Render Window 0", font_size=30, position="upper_edge")
plotter.add_text("Upper_Left", font_size=20, position="upper_left", color=(1,1,1))
plotter.add_text("Upper_Right", font_size=20, position="upper_right", color="green")
plotter.add_text("Lower_Left", font_size=20, position="lower_left", color="blue")
plotter.add_text("Lower_Right", font_size=20, position="lower_right", color="red")
plotter.add_mesh(examples.load_globe())

plotter.subplot(0, 1)
plotter.add_text("Upper_Edge", font_size=20, position="upper_edge")
plotter.add_text("Lower_Edge", font_size=20, position="lower_edge", font="courier")
plotter.add_text("Left_Edge", font_size=20, position="left_edge", font="times")
plotter.add_text("Right_Edge", font_size=20, position="right_edge", color=(0.9,0.9,0.5))
plotter.add_mesh(pv.Cube(), show_edges=True, color="tan")

plotter.subplot(1, 0)
plotter.add_text("Render Window 2", font_size=30, position="upper_edge")
sphere = pv.Sphere()
plotter.add_mesh(sphere, scalars=sphere.points[:, 2])
plotter.add_axes(interactive=True)

plotter.subplot(1, 1)
plotter.add_text("Render Window 3", font_size=30, position="left_edge")
plotter.add_mesh(pv.Cone(), color="g", show_edges=True)

# Display the window
pn.panel(plotter.ren_win, sizing_mode="stretch_both", height=400)

image

@xavArtley xavArtley force-pushed the xav/vtk_edge_corner_annotations branch from 05befd3 to 209c7e2 Compare April 27, 2021 13:54
@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #2257 (9e40ce5) into master (dec61e4) will decrease coverage by 0.02%.
The diff coverage is 75.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2257      +/-   ##
==========================================
- Coverage   83.64%   83.61%   -0.03%     
==========================================
  Files         183      183              
  Lines       21894    21928      +34     
==========================================
+ Hits        18313    18336      +23     
- Misses       3581     3592      +11     
Impacted Files Coverage Δ
panel/pane/vtk/synchronizable_serializer.py 77.32% <43.75%> (-0.87%) ⬇️
panel/models/vtk.py 98.48% <100.00%> (+0.02%) ⬆️
panel/pane/vtk/enums.py 100.00% <100.00%> (ø)
panel/pane/vtk/vtk.py 96.38% <100.00%> (-0.01%) ⬇️
panel/param.py 87.81% <0.00%> (-0.30%) ⬇️
panel/widgets/tables.py 84.07% <0.00%> (-0.19%) ⬇️
panel/pane/plotly.py 91.42% <0.00%> (+0.89%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dec61e4...9e40ce5. Read the comment docs.

@philippjfr
Copy link
Member

Ready to merge?

@xavArtley
Copy link
Collaborator Author

Yes

@philippjfr philippjfr merged commit 718543b into master Apr 27, 2021
@philippjfr philippjfr deleted the xav/vtk_edge_corner_annotations branch April 27, 2021 15:54
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.

2 participants