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

Doc build 2 #63

Merged
merged 5 commits into from
Aug 3, 2021
Merged

Doc build 2 #63

merged 5 commits into from
Aug 3, 2021

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Aug 2, 2021

Description

Fixes #

@dstansby dstansby added the No Changelog Entry Needed Skip any changelog checks. label Aug 2, 2021
def __init__(self, coordinate_frame=None):
if coordinate_frame is None:
coordinate_frame = HeliocentricInertial()
self._coordinate_frame = coordinate_frame
self._plotter = pv.Plotter()
self.camera = self._plotter.camera
self.all_meshes = {}
self.color_maps = {v: k for k, v in cm.cmlist.items()}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffreypaul15 do you remember what the reason for this was? I had to remove it to get the doc build working, and wanted to check what it was for.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to make sure that we're saving the name of the colormap when save is called.
The change was made in #55.
map.cmap.name gives us the names of the colormaps but we need their variable names, cmlist allowed has the mapping of variable names as keys and actual names as values so I created an inverse of cmlist to allow specification of the correct colormap when loading as we would be specifying the name and we'd need the variable name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I've edited this a bit in this PR to make it more general and work with any Matplotlib colormap. Previously it was only working with sunpy colormaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Changelog Entry Needed Skip any changelog checks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants