Gravlax
September 23, 2022, 7:00am
8
@icweaver and @jar1 thanks a lot for the follow up. Since I don’t wan’t to hijack your thread and since my problem may be unrelated, I’ve made a separate thread:
Dear all,
I have an issue when plotting patches with Makie when the field has no spatial variations.
I provide a MWE below. The returned error is ArgumentError: range step cannot be zero if v=zeros(nel) (constant data) . However if v=rand(nel) it works.
I suspect that using limits=(min_v, max_v) is the source of the zero range step (since min_v==max_v). Commenting it disables the errors but also the plot (at least in Jupyter). Anyone has an idea of potential workarounds?
using CairoMakie
us…
1 Like