{"action":"opened","issue":{"url":"https://api.github.com/repos/pyviz/EarthSim/issues/53","repository_url":"https://api.github.com/repos/pyviz/EarthSim","labels_url":"https://api.github.com/repos/pyviz/EarthSim/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/issues/53/comments","events_url":"https://api.github.com/repos/pyviz/EarthSim/issues/53/events","html_url":"https://github.com/pyviz/EarthSim/issues/53","id":317837333,"number":53,"title":"Visualizing data on TriMesh - colorbar and range","user":{"login":"kcpevey","id":15659110,"avatar_url":"https://avatars3.githubusercontent.com/u/15659110?v=4","gravatar_id":"","url":"https://api.github.com/users/kcpevey","html_url":"https://github.com/kcpevey","followers_url":"https://api.github.com/users/kcpevey/followers","following_url":"https://api.github.com/users/kcpevey/following{/other_user}","gists_url":"https://api.github.com/users/kcpevey/gists{/gist_id}","starred_url":"https://api.github.com/users/kcpevey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcpevey/subscriptions","organizations_url":"https://api.github.com/users/kcpevey/orgs","repos_url":"https://api.github.com/users/kcpevey/repos","events_url":"https://api.github.com/users/kcpevey/events{/privacy}","received_events_url":"https://api.github.com/users/kcpevey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T00:28:49Z","updated_at":"2018-04-26T00:28:49Z","closed_at":null,"author_association":"COLLABORATOR","body":"I'm trying to read in a hotstart file (.hot) (formatted exactly the same as a result file (.dat)). I'm working off the same concepts in Visualizing_Meshes.ipynb. I can get it load in and plot. The TriMesh color contours appear to be linked to the ioh values like I want, but I can't get it `redim.range` and `colorbar=True` to have any effect. Here is the basic workflow:  \r\n  \r\nRead an AdH 3dm mesh and reproject the points  \r\n```\r\ntris, verts = read_3dm_mesh(fpath,skiprows=2)\r\npoints = gv.operation.project_points(gv.Points(verts, vdims=['z'], crs=coord_sys))\r\n```\r\nAdd the hotstart data to the points (ioh) and plot  \r\n```\r\n%%opts TriMesh (cmap='RdYlBu') [color_index='ioh', colorbar=True]\r\nfpath = os.path.join(path, filename + '.hot')\r\nhotstart = read_mesh2d(fpath)\r\ndepth_points = points.add_dimension('ioh', 0, hotstart[0].values[:, 0], vdim=True)\r\nhot_trimesh = gv.TriMesh((tris, depth_points))\r\nviz.tiles * datashade(hot_trimesh, aggregator=ds.mean('ioh')).redim.range(ioh=(0, 6))\r\n```\r\nIt looks like `aggregator=ds.mean('ioh')` is working correctly, but `.redim.range(ioh=(0,6)` has no effect.  I also have no colorbar.  \r\n  \r\nAlso, there are no errors, but I am getting this warning: \r\n`C:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\IPython\\core\\interactiveshell.py:2903: DtypeWarning: Columns (0) have mixed types. Specify dtype option on import or set low_memory=False.\r\n  if self.run_code(code, result):`"}}
{"actor":{"display_login":"kcpevey"}}