[ncl-talk] Bug :: Multiple workstation sizes -- new workstations change size of existing ones

Alan Brammer abrammer at albany.edu
Fri Jun 17 14:35:33 MDT 2016


Everyone loves bug reports on a friday afternoon right?


New workstations influence the size of existing workstations, meaning that vpWidthF = 1, does not correspond to the correct workstation anymore. 

example code:

wks_type = "png"
wks_type at wkWidth = 1000.
wks_type at wkHeight =1000.
wks = gsn_open_wks(wks_type,"multi_size_test")

mpres = True
mpres at gsnDraw= False
mpres at gsnFrame = False

map = gsn_csm_map(wks, mpres)

draw(map)
frame(wks)


;;; create new fake workstation, not attached to existing ones through 
fake_wks = create "fake" imageWorkstationClass noparent
end create

draw(map)
frame(wks)


fake_wks = create "fake" imageWorkstationClass noparent
"wkWidth":2000
"wkHeight":2000
end create

draw(map)
frame(wks)

fake_wks = create "fake" imageWorkstationClass noparent
"wkWidth":1000
"wkHeight":1000
end create

draw(map)
frame(wks)



I’m using create for my fake wks as gsn_open_wks() attaches new workstations to the same app_id or something and thus deleting the fake_wks also breaks the old one.  Can’t find the ncl-talk archive now, that solved that dilemma yesterday. 

From the attached images, you can see the png remains the same size, but the map inside of the workstation changes.  The vpWidthF and vpHeightF will remain constant though. 
For my purposes the workaround is to make sure that any fake workstations I create are the same size as real ones, but it’d be nice if workstations were independent. 





Alan. 








-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/e88ea3de/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000001.png
Type: image/png
Size: 14218 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/e88ea3de/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000002.png
Type: image/png
Size: 11513 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/e88ea3de/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000003.png
Type: image/png
Size: 10698 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/e88ea3de/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000004.png
Type: image/png
Size: 14218 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/e88ea3de/attachment-0003.png 


More information about the ncl-talk mailing list