vcs icon indicating copy to clipboard operation
vcs copied to clipboard

Vector plot legend

Open lee1043 opened this issue 8 years ago • 4 comments

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.

lee1043 avatar Oct 25 '17 00:10 lee1043

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

doutriaux1 avatar Jan 24 '18 20:01 doutriaux1

@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 avatar Feb 21 '18 15:02 doutriaux1

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

Docetom avatar Oct 12 '21 07:10 Docetom

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.)

doutriaux1 avatar Oct 12 '21 13:10 doutriaux1