if min_stripe_width <= 0 or min_stripe_width >= dx:
        msg = ("The minimum width of a stripe cannot be zero "
               "or exceed the size of the horizontal dimension")
        raise ValueError(msg)