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

Better mesh plotting for detector; Better plotter docstrings #96

Merged
merged 12 commits into from
Mar 16, 2018

Conversation

drewejohnson
Copy link
Collaborator

@drewejohnson drewejohnson commented Mar 15, 2018

Closes #83 by using the matplotlib pcolormesh to simplify the plotting.
This new plot function allows many new features, including log-scale and custom colormap normalization.

Updated the detector example to show off some new plot capabilities such as plotting multiple tally sets on the same figure

Documentation

Added a magic decorator in plot.py that uses magic strings (hard coded matches) to update a function or methods doc string. This was built to reduce the code in documenting the plot methods that shared many common keyword arguments, such as ax, xlabel, and all returned an ax on which the figure was drawn.

Edit

Updated flux mesh plot to reflect changes in 0a37e55

andrewjohnson added 11 commits March 9, 2018 10:45
Need to fix lethargy normalization
Need to inspect the mesh plotter more, especially for cases
where the x/y data is not a grid quantity, like plotting
reaction values on the y axis. Direct comparison against
matplotlib.pyplot.pcolormesh shows that these grid vectors
are drawing every shape with the same y coordinates, only varying
in x.
In order to better align with the zero-index nature of python and
numpy arrays, the values in the indexes ordered dictionary are
now shifted down by 1.
Resolved the cartesian plotter in plot.py and used by
DetectorBase objects for plotting cartesian meshes.
Use a better matplotlib renderer that supports better
colormaps and color-normalizations.

Updated the detector example including new figures.
Add a page for the plotting routines in plot.py

Apply the magigPlotDocDecorator found in plot.py to
many other plot routines to give a consistent
documentation.
@drewejohnson drewejohnson merged commit 3459e8a into develop Mar 16, 2018
@drewejohnson drewejohnson deleted the cart-plot branch March 16, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants