CDAT / vcs

Visualization Control System
19 stars 13 forks source link

Vector plot legend #265

Open lee1043 opened 6 years ago

lee1043 commented 6 years ago

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 commented 6 years ago

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

doutriaux1 commented 6 years ago

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

Docetom commented 2 years ago

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 commented 2 years ago

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