Skip to content
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

animation does not work on projected plots #1086

Closed
doutriaux1 opened this issue Feb 26, 2015 · 3 comments
Closed

animation does not work on projected plots #1086

doutriaux1 opened this issue Feb 26, 2015 · 3 comments
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

@doutriaux1 doutriaux1 commented Feb 26, 2015

import cdms2,vcs,os

f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))

print f.variables.keys()

ice = f("clt",latitude=(90,30))
print ice.shape

x=vcs.init()

gm = x.createisofill()

levs = vcs.mkscale(ice.min(),ice.max())
cols=vcs.getcolors(levs)

gm.levels= levs
gm.fillareacolors = cols
gm.projection="polar"
x.plot(ice,gm)

x.animate.create()

import time
time.sleep(1)
print "Creating"

x.animate.save("ice.mp4")

print x.close(preserve_pngs=True)
@doutriaux1 doutriaux1 added the VCS label Feb 26, 2015
@doutriaux1 doutriaux1 self-assigned this Feb 26, 2015
@doutriaux1 doutriaux1 added this to the 2.3 milestone Feb 26, 2015
@doutriaux1 doutriaux1 changed the title animation does not work on projectied plots animation does not work on projected plots Aug 31, 2015
@doutriaux1 doutriaux1 assigned sankhesh and unassigned doutriaux1 Sep 2, 2015
@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Sep 2, 2015

@sankhesh will verify if it is already been fixed

@sankhesh sankhesh assigned aashish24 and unassigned sankhesh Oct 7, 2015
@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Oct 9, 2015

@doutriaux1 looking into this now..

@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Oct 9, 2015

I was able to replicate the issue.. odd bug..

@sankhesh sankhesh assigned sankhesh and unassigned aashish24 Oct 27, 2015
sankhesh added a commit that referenced this issue Nov 2, 2015
This change fixes the issue wherein no output was being produced
when animating projected data. Each draw_frame call invokes
VTKPlots::update_input which in turn calls doWrap on the
actor. Trying to wrap projected data fails.

Since, the data is already wrapped before the actor is
cached, wrapping again is not required.

Fixes #1086
sankhesh added a commit that referenced this issue Nov 2, 2015
This change fixes the issue wherein no output was being produced
when animating projected data. Each draw_frame call invokes
VTKPlots::update_input which in turn calls doWrap on the
actor. Trying to wrap projected data fails.

Fixes #1086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants