# AoG "range step cannot be zero"

**URL:** <https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624>\
**Category:** Visualization\
**Tags:** algebraofgraphics\
**Created:** [September 22, 2022, 8:28am UTC](https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624 "2022-09-22T08:28:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [September 23, 2022, 7:00am UTC](https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624/8 "2022-09-23T07:00:53Z")

</div>

@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:

> [@Plotting patches of constant values using Makie](https://discourse.julialang.org/t/plotting-patches-of-constant-values-using-makie/87687):
>
> 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…

---

_[View the full topic](https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624)._
