Open lisch7 opened 1 month ago
Hi ! Do you have any update on this issue, or a workaround ? Thank you !
Hey @ConstensouxAlexis, the picture looks correct though, no? Given that your plot background is white, they should show up as white. Or what was the result you expected?
Hey @ConstensouxAlexis, the picture looks correct though, no? Given that your plot background is white, they should show up as white. Or what was the result you expected?
@timtreis Hi, I expected the background to be transparent so that the underlying HE image would show through, as demonstrated in the tutorial. However, the background is currently solid white.
Hi @ConstensouxAlexis @lisch7,
I was running into the same issue as you with the white background. I managed to solve it. I think the set_zero_in_cmap_to_transparent()
function is running correctly and 0 values are transparent but it appears white because the image of the tissue is not being displayed. For me this was due to the coordinate_systems
argument not being set correctly (was 'global'
but for me should have been "downscaled_hires"
). I'd recomment inspecting your spatial object and checking that both the image and data you're trying to display together share the same coordinate system.
Hope this helps! Dave
Issue Description
I am experiencing an issue with the
set_zero_in_cmap_to_transparent
function. According to the documentation, using this function should set the positions in the data with a value of 0 to be transparent. However, I found that instead of becoming transparent, these positions turn white after executing the function.Code
Output without
set_zero_in_cmap_to_transparent
functions:Output with
set_zero_in_cmap_to_transparent
functions:Environment Information
Thank you for your help!