{"action":"closed","issue":{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1720","labels_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1720/labels{/name}","comments_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1720/comments","events_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1720/events","html_url":"https://github.com/UV-CDAT/uvcdat/issues/1720","id":120200284,"number":1720,"title":"Data is clipped in interactive mode","user":{"login":"danlipsa","id":6180727,"avatar_url":"https://avatars.githubusercontent.com/u/6180727?v=3","gravatar_id":"","url":"https://api.github.com/users/danlipsa","html_url":"https://github.com/danlipsa","followers_url":"https://api.github.com/users/danlipsa/followers","following_url":"https://api.github.com/users/danlipsa/following{/other_user}","gists_url":"https://api.github.com/users/danlipsa/gists{/gist_id}","starred_url":"https://api.github.com/users/danlipsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlipsa/subscriptions","organizations_url":"https://api.github.com/users/danlipsa/orgs","repos_url":"https://api.github.com/users/danlipsa/repos","events_url":"https://api.github.com/users/danlipsa/events{/privacy}","received_events_url":"https://api.github.com/users/danlipsa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"danlipsa","id":6180727,"avatar_url":"https://avatars.githubusercontent.com/u/6180727?v=3","gravatar_id":"","url":"https://api.github.com/users/danlipsa","html_url":"https://github.com/danlipsa","followers_url":"https://api.github.com/users/danlipsa/followers","following_url":"https://api.github.com/users/danlipsa/following{/other_user}","gists_url":"https://api.github.com/users/danlipsa/gists{/gist_id}","starred_url":"https://api.github.com/users/danlipsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlipsa/subscriptions","organizations_url":"https://api.github.com/users/danlipsa/orgs","repos_url":"https://api.github.com/users/danlipsa/repos","events_url":"https://api.github.com/users/danlipsa/events{/privacy}","received_events_url":"https://api.github.com/users/danlipsa/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-12-03T15:43:21Z","updated_at":"2015-12-17T16:46:37Z","closed_at":"2015-12-17T16:46:37Z","body":"Further more, data is OK when saving a PNG but annotations are off.\r\nAlso, data is scaled differently in interactive mode compared with the PNG.\r\n\r\nI used the following script provided by @aashish24 \r\n\r\n#!/usr/bin/env python\r\nimport cdms2, cdutil, genutil\r\nimport vcs\r\n\r\nif __name__ == '__main__':\r\n    import sys\r\n    cdmsfile = cdms2.open('~/build/uvcdat/install/share/uvcdat/sample_data/clt.nc')\r\n    clt = cdmsfile('clt')\r\n    clt = clt(latitude=(-90.0, 90.0),squeeze=1,longitude=(-180.0, 175.0),time=('1979-01', '1988-12'),)\r\n    axesOperations = eval(\"{'latitude': 'def', 'longitude': 'def', 'time': 'def'}\")\r\n    for axis in list(axesOperations):\r\n        if axesOperations[axis] == 'sum':\r\n            clt = cdutil.averager(clt, axis='(%s)'%axis, weight='equal', action='sum')\r\n        elif axesOperations[axis] == 'avg':\r\n            clt = cdutil.averager(clt, axis='(%s)'%axis, weight='equal')\r\n        elif axesOperations[axis] == 'wgt':\r\n            clt = cdutil.averager(clt, axis='(%s)'%axis)\r\n        elif axesOperations[axis] == 'gtm':\r\n            clt = genutil.statistics.geometricmean(clt, axis='(%s)'%axis)\r\n        elif axesOperations[axis] == 'std':\r\n            clt = genutil.statistics.std(clt, axis='(%s)'%axis)\r\n    canvas = vcs.init()\r\n    gmIsofill = vcs.getisofill('a_robinson_isofill')\r\n    args = []\r\n    args.append(clt)\r\n    gmIsofill.datawc_calendar = 135441\r\n    gmIsofill.datawc_timeunits = 'days since 2000'\r\n    gmIsofill.datawc_x1 = 1e+20\r\n    gmIsofill.datawc_x2 = 1e+20\r\n    gmIsofill.datawc_y1 = 1e+20\r\n    gmIsofill.datawc_y2 = 1e+20\r\n    gmIsofill.levels = [[1.0000000200408773e+20, 1.0000000200408773e+20]]\r\n    gmIsofill.ext_1 = False\r\n    gmIsofill.ext_2 = False\r\n    gmIsofill.fillareacolors = [1]\r\n    gmIsofill.fillareaindices = [1]\r\n    gmIsofill.fillareastyle = 'solid'\r\n    gmIsofill.legend = None\r\n    gmIsofill.missing = 241\r\n    gmIsofill.projection = 'robinson'\r\n    gmIsofill.xaxisconvert = 'linear'\r\n    gmIsofill.xmtics1 = ''\r\n    gmIsofill.xmtics2 = ''\r\n    gmIsofill.xticlabels1 = '*'\r\n    gmIsofill.xticlabels2 = '*'\r\n    gmIsofill.yaxisconvert = 'linear'\r\n    gmIsofill.ymtics1 = ''\r\n    gmIsofill.ymtics2 = ''\r\n    gmIsofill.yticlabels1 = '*'\r\n    gmIsofill.yticlabels2 = '*'\r\n    kwargs = {}\r\n    kwargs[ 'cdmsfile' ] = cdmsfile.id\r\n    args.append( gmIsofill )\r\n    canvas.plot( *args, **kwargs )\r\n    fnm = \"bad.png\"\r\n    canvas.png(fnm)\r\n    canvas.interact()\r\n\r\nHere is a screenshot of the interactive display:\r\n![bad-interactive](https://cloud.githubusercontent.com/assets/6180727/11565140/9d5ccc18-99aa-11e5-8204-574c21077a38.png)\r\nHere is the PNG file saved:\r\n![bad](https://cloud.githubusercontent.com/assets/6180727/11565154/ab826960-99aa-11e5-9508-51a4ae16d48c.png)\r\n"}}