You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capabilities to plot several slices of detector data at once. Consider the example file bwr_det0.m. If one reads the whole file and obtains the xymesh detector with
import serpentTools
d = serpentTools.readDataFile('bwr_det0.m')['xymesh']
one can plot the tally data either with mesh plots or using the plot command, fixing the energy axis as
d.plot('xmesh', fixed={'energy': 0})
and obtain
There is a lot in this figure, and it is difficult to identify what lines correspond to what y-mesh plotted.
When completed, this enhancment will allow the user to plot along multiple axis, e.g. several y-mesh indexes, with one plot command.
By passing a tuple of values to the fixed dictionary for ymesh, one should be able to plot Note the labels were added after the fact during my plot and are not indicative of the intended label. Instead, maybe add labels as the index, or allow the user to pass the labels through the labels argument.
The slice method does support this functionality, as demonstrated below
Summary of enhancement
Capabilities to plot several slices of detector data at once. Consider the example file
bwr_det0.m
. If one reads the whole file and obtains thexymesh
detector withone can plot the tally data either with mesh plots or using the
plot
command, fixing the energy axis asand obtain
There is a lot in this figure, and it is difficult to identify what lines correspond to what y-mesh plotted.
When completed, this enhancment will allow the user to plot along multiple axis, e.g. several y-mesh indexes, with one plot command.
By passing a tuple of values to the
fixed
dictionary forymesh
, one should be able to plotNote the labels were added after the fact during my plot and are not indicative of the intended label. Instead, maybe add labels as the index, or allow the user to pass the labels through the
labels
argument.The
slice
method does support this functionality, as demonstrated belowPassing a similar dictionary into
plot
gets some errors with matplotlib, as the data is not the right shape.The text was updated successfully, but these errors were encountered: