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

Remove/move bar at bottom of plot #37

Closed
laserman781 opened this issue Jul 31, 2019 · 1 comment
Closed

Remove/move bar at bottom of plot #37

laserman781 opened this issue Jul 31, 2019 · 1 comment
Assignees
Labels
plotting General plotting/rendering topics

Comments

@laserman781
Copy link

Is there a way to remove or move the bars that go on the bottom of the plot for cmaps?
image
^As you can see above, the bars are in the way.

I want to be able to remove the top one and move the bottom one.

Thanks!

@banesullivan
Copy link
Member

When you add the mesh that is associated with the colorbar that you do not want to see, pass show_scalar_bar=False as an argument.

To make the other one interactive, do something like the following which is from this example:

# create dictionary of parameters to control scalar bar
sargs = dict(interactive=True)  # Simply make the bar interactive

p = pv.Plotter(notebook=False)  # If in IPython, be sure to show the scene
p.add_mesh(mesh, scalar_bar_args=sargs)
p.show()

@banesullivan banesullivan added the plotting General plotting/rendering topics label Jul 31, 2019
@banesullivan banesullivan self-assigned this Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plotting General plotting/rendering topics
Projects
None yet
Development

No branches or pull requests

2 participants