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 save does not preserve the colormap #1845

Closed
doutriaux1 opened this Issue Feb 18, 2016 · 9 comments

Comments

Projects
None yet
3 participants
@doutriaux1
Member

doutriaux1 commented Feb 18, 2016

import vcs
import cdms2
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt")
x=vcs.init()
x.setcolormap("AMIP")
x.plot(s)
x.interact()

@doutriaux1 doutriaux1 added this to the 2.6 milestone Feb 18, 2016

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 4, 2016

@lee1043 does this work for you?

@lee1043

This comment has been minimized.

lee1043 commented May 4, 2016

@doutriaux1 Colormap changes immediately after I click "save animation". Bluemarble image is also disappearing.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 4, 2016

@lee1043 yes I would expect the bluemarble to disappear. I'll take a look at the colormap issue

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Jun 10, 2016

@chaosphere2112 did you fix this? I can't reproduce.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Jun 10, 2016

import vcs
import cdms2
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt",slice(0,12))
x=vcs.init()
gm = x.createisofill()
x.setcolormap("bl_to_darkred")
x.plot(s,gm)
x.animate.create()
x.animate.run()

works perfectly as well for me.

@chaosphere2112

This comment has been minimized.

Contributor

chaosphere2112 commented Jun 10, 2016

@doutriaux1 Looks like @lee1043 was doing it through my interaction bits, rather than from code. Must be something dumb I did in there.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Jun 10, 2016

nope i tried that too and it works perfectly.

@chaosphere2112

This comment has been minimized.

Contributor

chaosphere2112 commented Jun 10, 2016

K. Weird.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Jun 10, 2016

it is the save that fails, looking into it now. Thanks @lee1043

doutriaux1 added a commit that referenced this issue Jun 14, 2016

we used to have two path for rendering a frame
the one saving pngs was broken and not preserving pngs
two paths are now unified
this also fixes zoom on animations.
fix #1845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment