/ vcs Public

# Multiple parallel coordinates (y-axis) on single plot#11

Closed
opened this issue Sep 27, 2016 · 4 comments
Closed

# Multiple parallel coordinates (y-axis) on single plot #11

opened this issue Sep 27, 2016 · 4 comments
Labels
Milestone

### durack1 commented Sep 27, 2016 • edited

 As mentioned by @jservonnat the following plot would certainly be a useful template to have handy when calculating and presenting metrics across a number of models or single model simulations - this will be useful for PCMDI/pcmdi_metrics#421 @doutriaux1 you're planning on working on this, correct? The text was updated successfully, but these errors were encountered:
mentioned this issue Sep 27, 2016

### danlipsa commented Sep 27, 2016

 @durack1 @doutriaux1 @aashish24 VTK has a parallel coordinates plot: http://www.vtk.org/Wiki/VTK/Examples/Python/Infovis/ParallelCoordinatesExtraction

### durack1 commented Sep 27, 2016

 @danlipsa perfect - thanks for pointing this out!

### durack1 commented Oct 3, 2016

 @doutriaux1 transcribing your work here: import json import vcs J=self.loadJSON() rms_xyt = J(statistic=["rms_xyt"],season=["ann"],region="global")(squeeze=1) import vcsaddons bg = True #x=vcs.init(geometry=(800,600),bg=bg) x=vcs.init() gm = vcsaddons.createparallelcoordinates(x=x) t = vcs.createtemplate() to=x.createtextorientation("newxlbl") to.angle=-45 to.halign="right" to2=x.createtextorientation("newleg") to2.height = 8 t.xlabel1.textorientation = to.name t.legend.textorientation = to2.name t.reset('x',0.05,0.77,t.data.x1,t.data.x2) t.legend.x1 = t.data.x2 +.01 t.legend.x2 = .99 t.legend.y1 = t.data.y1 t.legend.y2 = t.data.y2 gm.plot(rms_xyt,template=t,bg=bg) x.png("pcoords") Yields: @jservonnat is there anything that should be tweaked in the default output here before this issue is closed?

### doutriaux1 commented Oct 3, 2016

 @durack1 I spoke with @jservonnat this morning we added capability to print units in between parenthesis next to variables, if the variable has a units attribute which happen to be a list of the units. Everything else seems to be working as @jservonnat expects it to.

modified the milestone: 2.10 May 5, 2017