Open RemDelaporteMathurin opened 2 years ago
ah that is caused by this line, not quite sure how to apply vmin and scale separately.
So vmin and vmax only influence the colorbar. If specifying the norm, you can do :
plot = plot_regular_mesh_tally_with_geometry(
tally=my_tally_xz,
dagmc_file_or_trimesh_object="dagmc_not_merged.h5m",
plane_origin=(0, 0, 0),
plane_normal=[0, 1, 0],
rotate_geometry=90,
source_strength=source_strength,
scale=LogNorm(vmin=1e-3),
label="Tritium generation (T/m3/s)",
filename="my_tally_xz.png",
)
But vmin and vmax only change the colorbar, not the actual data, in the sense that it doesn't mask the data below or above this threshold.
It would be a very nice feature: https://stackoverflow.com/questions/32991649/matplotlib-imshow-how-to-apply-a-mask-on-the-matrix
I think this will be fixed in #37
produces