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

Vector plot legend #265

Open
lee1043 opened this issue Oct 25, 2017 · 4 comments
Open

Vector plot legend #265

lee1043 opened this issue Oct 25, 2017 · 4 comments
Assignees
Milestone

Comments

@lee1043
Copy link
Contributor

lee1043 commented Oct 25, 2017

I am working on plotting using vector and got two questions as below:

clim_jja_precip_850uv_slp_east_asia_ref

Two questions from here are:

  1. Can I move the location of vector legend to avoid overlapping with the colorbar? For example I want to put it under the left bottom of the plotting box.

  2. Can I specify the magnitude of vector legend? For example, it is 12.09 m/s in the above plot but I want to set reference vector as 10 m/s. It makes comparison easier if I have two vector different vector fields.

@doutriaux1
Copy link
Contributor

@aashish24 @danlipsa @scottwittenburg can somebody at Kitware take a look please?

@doutriaux1 doutriaux1 modified the milestones: 3.0, post 3.0 Feb 21, 2018
@doutriaux1
Copy link
Contributor

@lee1043 you can move the location via template, use the legend.x1/x2/y1/y2 to specify the lgend location

For 2 it will be a post 3.0 feature, but good suggestion.

@doutriaux1 doutriaux1 modified the milestones: post 3.0, Next Release Mar 29, 2018
@doutriaux1 doutriaux1 modified the milestones: 8.1, 8.2 Mar 27, 2019
@Docetom
Copy link

Docetom commented Oct 12, 2021

I am having thesame challange. The reference vector moves along with the colorbar. using legend.x1/x2/y1/y2 does'nt seem to help. Please any suggestion on how to solve this? If anyone has the answer, please help me out.

image

@doutriaux1
Copy link
Contributor

You will need to create a dedicated template for the vector and either turn template.legend.priority=0 to remove the legend or play with template.legend.x1/x2/y1/y2 to move the legend around. (it might be template.legend.box.x1/x2/y1/y2, it's been a while I'm off the project.)

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

No branches or pull requests

4 participants