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

DM-42741: Make focalPlaneGeometryPlot look a bit better #203

Merged
merged 1 commit into from Feb 13, 2024

Conversation

sr525
Copy link
Collaborator

@sr525 sr525 commented Feb 1, 2024

No description provided.

@sr525 sr525 force-pushed the tickets/DM-42741 branch 2 times, most recently from ee5c772 to 72a6f39 Compare February 1, 2024 00:16
Copy link
Contributor

@plazas plazas left a comment

Choose a reason for hiding this comment

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

LGTM! Just a few questions for clarification.

@@ -343,6 +355,10 @@ def makePlot(
fig : `matplotlib.figure.Figure`
The resulting figure.
"""

cmap = mkColormap(["midnightBlue", "lightcyan", "darkgreen"])
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are there 3 options here, and could we add "tableau-colorblind10"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The three work together to make the colormap, I do want to move all the plots over to a coloublind friendly set of palates, if these ones aren't already, but I would prefer to change all the plots at once.

valuesPlot = np.clip(values, vmin, vmax)

patchCollection = PatchCollection(
patches, edgecolor="white", cmap=cmap, linewidth=0.5, linestyle=(0, (0.5, 3))
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be too much to make these options (e.g., edgecolor, linewidth...) configurable too, or is it not worth it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would prefer not to make all of these things configurable. I would like the plots produced to be uniform and not clutter up the code with too many config options.

@sr525 sr525 merged commit 4d59dfd into main Feb 13, 2024
7 checks passed
@sr525 sr525 deleted the tickets/DM-42741 branch February 13, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants