New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
durack1 opened this Issue Sep 27, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@durack1
Member

durack1 commented Sep 27, 2016

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
parallel_coordinates_with_r

@doutriaux1 you're planning on working on this, correct?

@danlipsa

This comment has been minimized.

Contributor

danlipsa commented Sep 27, 2016

@durack1

This comment has been minimized.

Member

durack1 commented Sep 27, 2016

@danlipsa perfect - thanks for pointing this out!

@durack1

This comment has been minimized.

Member

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:
pcoords

@jservonnat is there anything that should be tweaked in the default output here before this issue is closed?

@doutriaux1

This comment has been minimized.

Member

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.

@doutriaux1 doutriaux1 closed this Mar 31, 2017

@doutriaux1 doutriaux1 modified the milestone: 2.10 May 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment