Skip to content

Instantly share code, notes, and snippets.

@Vindaar
Created February 26, 2018 13:31
Show Gist options
  • Save Vindaar/cd468be8ee81b7323345062dd610d4fb to your computer and use it in GitHub Desktop.
Save Vindaar/cd468be8ee81b7323345062dd610d4fb to your computer and use it in GitHub Desktop.
function draw_new_frame(fig, cb, image, frame, file)
image[:set_data](frame)
# get the filename written prev.
texts = fig[:texts]
for i in range(1, length(texts))
# and remove each
texts[1][:remove]()
end
# write new filename
fig[:text](0.4, 0.9, file)
# scale the colorbar
image[:set_clim](0, 100)
cb[:update_normal](image)
fig[:canvas][:draw]()
draw()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment