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

Closed
doutriaux1 opened this issue Feb 18, 2016 · 9 comments · Fixed by #2028
Closed

animation save does not preserve the colormap #1845

doutriaux1 opened this issue Feb 18, 2016 · 9 comments · Fixed by #2028
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

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
Copy link
Contributor Author

@lee1043 does this work for you?

@lee1043
Copy link

lee1043 commented May 4, 2016

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

@doutriaux1
Copy link
Contributor Author

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

@doutriaux1
Copy link
Contributor Author

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

@doutriaux1
Copy link
Contributor Author

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
Copy link
Contributor

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

@doutriaux1
Copy link
Contributor Author

nope i tried that too and it works perfectly.

@chaosphere2112
Copy link
Contributor

K. Weird.

@doutriaux1
Copy link
Contributor Author

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

doutriaux1 added a commit that referenced this issue Jun 14, 2016
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants