vcs icon indicating copy to clipboard operation
vcs copied to clipboard

vector legend depends on aspect ratio of canvas/png

Open doutriaux1 opened this issue 6 years ago • 0 comments

import vcs
import cdms2

vcs.download_sample_data_files()

f = cdms2.open(vcs.sample_data+"/clt.nc")
u = f("u")
v = f("v")
gm = vcs.createvector()
for height in [600,700,800]:
    x=vcs.init(geometry=(1200,height), bg=True)
    x.plot(u,v,gm)
    x.png("bug_{:d}".format(height))

gives: bug_600 bug_700 bug_800

doutriaux1 avatar May 14 '18 18:05 doutriaux1