Issue with colorbar jumping max/min values when plotting movie

14 views
Skip to first unread message

Caroline Alexander

unread,
May 11, 2016, 7:08:15 PM5/11/16
to SunPy
Hi everyone,

When plotting a single AIA image I know it can be scaled using vmin/vmax but I'm having an issue when using more than one image.

If I have a mapcube called 'derotated' for example, I can make an on-screen movie using:

mp4=derotated.plot(interval=100,vmin=0,vmax=1000)

but using vmin/vmax here (and also calling colors.Normalize in another attempt) doesn't seem to have any effect and as the movie plays the numbers on the color bar change in position/value for each image. This looks really bad.

Please let me know if I am missing something obvious or if anyone has run into this before. I can obviously just not plot the colorbar but that seems like cheating and I would like each frame of the movie to be scaled in the same way.

Any advice would be appreciated!

Thank you,

Caroline

Shih, Albert Y. (GSFC-6710)

unread,
May 11, 2016, 7:47:36 PM5/11/16
to su...@googlegroups.com

Hi, Caroline,

     For the normalizer, MapCube uses the plot settings dictionary carried within each contained Map objects.  That is, as currently implemented, you need to set `plot_settings[‘norm’]` to the appropriate normalizer in each individual frame.

 

Albert

--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sunpy+un...@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages