Matplotlib & Julia : Pcolormesh and mask

pyplot

#1

Hi,

I have a 2d matrix with values that I currently plot doing something like
axis[:pcolormesh](A', vmin=minimum(A[:]), vmax=0, edgecolor="white")
But some values in A are non-relevant and I’d like to give them a white color (or transparent).
I know that in python we would use a mask ; how can I achieve that in Julia ?
I found this answer https://stackoverflow.com/questions/35633806/how-to-get-transparency-into-pcolormesh-in-julialang but I don’t know how to apply it to a case with multiple possible values.

Thanks a lot


#2

See this issue on how to create a NumPy array with a “mask” from Julia: https://github.com/JuliaPy/PyPlot.jl/issues/262