125
125
grid = false,
126
126
color = true,
127
127
all = false,
128
+ box = nothing,
128
129
kwargs...
129
130
)
130
131
@@ -169,6 +170,10 @@ to ``\\frac{2\\pi}{3}``, cyan to ``\\pi``, blue to
169
170
170
171
- **`all`** is a shortcut for `abs = true` and `grid = true`.
171
172
173
+ - **`box`** if set to `(a, b, s)` shades the area where the the output
174
+ is within the box `a` and `b` in the color `s`. Can also be a list of
175
+ multiple boxes.
176
+
172
177
Remaining keyword arguments are passed to Makie.
173
178
"""
174
179
function domaincolor (
@@ -179,6 +184,7 @@ function domaincolor(
179
184
grid = false ,
180
185
color = true ,
181
186
all = false ,
187
+ box = nothing ,
182
188
kwargs...
183
189
)
184
190
@@ -188,7 +194,7 @@ function domaincolor(
188
194
end
189
195
190
196
interactiveshadedplot (
191
- f, w -> DC. domaincolorshader (w; abs, grid, color, all),
197
+ f, w -> DC. domaincolorshader (w; abs, grid, color, all, box ),
192
198
limits, pixels; kwargs... )
193
199
end
194
200
197
203
f :: "Complex -> Complex",
198
204
limits = (-1, 1, -1, 1);
199
205
pixels = (480, 480),
206
+ box = nothing,
200
207
kwargs...
201
208
)
202
209
@@ -222,16 +229,21 @@ to ``\\pi``, and black to ``\\frac{3\\pi}{2}``.
222
229
for both if only one number is provided. If either is `:auto`, the
223
230
viewport resolution is used.
224
231
232
+ - **`box`** if set to `(a, b, s)` shades the area where the the output
233
+ is within the box `a` and `b` in the color `s`. Can also be a list of
234
+ multiple boxes.
235
+
225
236
Remaining keyword arguments are passed to Makie.
226
237
"""
227
238
function pdphaseplot (
228
239
f,
229
240
limits = (- 1 , 1 , - 1 , 1 );
230
241
pixels = (480 , 480 ),
242
+ box = nothing ,
231
243
kwargs...
232
244
)
233
245
234
- interactiveshadedplot (f, DC. pdphaseplotshader,
246
+ interactiveshadedplot (f, w -> DC. pdphaseplotshader (w; box) ,
235
247
limits, pixels; kwargs... )
236
248
end
237
249
240
252
f :: "Complex -> Complex",
241
253
limits = (-1, 1, -1, 1);
242
254
pixels = (480, 480),
255
+ box = nothing,
243
256
kwargs...
244
257
)
245
258
@@ -265,16 +278,21 @@ Red corresponds to phase ``0``, white to ``\\frac{\\pi}{2}``, cyan to
265
278
for both if only one number is provided. If either is `:auto`, the
266
279
viewport resolution is used.
267
280
281
+ - **`box`** if set to `(a, b, s)` shades the area where the the output
282
+ is within the box `a` and `b` in the color `s`. Can also be a list of
283
+ multiple boxes.
284
+
268
285
Remaining keyword arguments are passed to Makie.
269
286
"""
270
287
function tphaseplot (
271
288
f,
272
289
limits = (- 1 , 1 , - 1 , 1 );
273
290
pixels = (480 , 480 ),
291
+ box = nothing ,
274
292
kwargs...
275
293
)
276
294
277
- interactiveshadedplot (f, DC. tphaseplotshader,
295
+ interactiveshadedplot (f, w -> DC. tphaseplotshader (w; box) ,
278
296
limits, pixels; kwargs... )
279
297
end
280
298
289
307
angle = false,
290
308
abs = false,
291
309
polar = false,
310
+ box = nothing,
311
+ hicontrast = false,
292
312
kwargs...
293
313
)
294
314
@@ -329,6 +349,10 @@ Numbers can be provided instead of booleans to override the default rates.
329
349
330
350
- **`phase`** is a shortcut for `angle = true` and `abs = true`.
331
351
352
+ - **`box`** if set to `(a, b, s)` shades the area where the the output
353
+ is within the box `a` and `b` in the color `s`. Can also be a list of
354
+ multiple boxes.
355
+
332
356
- **`hicontrast`** uses black and white instead of the softer defaults.
333
357
334
358
Remaining keyword arguments are passed to Makie.
@@ -343,12 +367,13 @@ function checkerplot(
343
367
angle = false ,
344
368
abs = false ,
345
369
polar = false ,
370
+ box = nothing ,
346
371
hicontrast = false ,
347
372
kwargs...
348
373
)
349
374
350
375
interactiveshadedplot (f, w -> DC. checkerplotshader (
351
- w; real, imag, rect, angle, abs, polar, hicontrast
376
+ w; real, imag, rect, angle, abs, polar, box, hicontrast
352
377
), limits, pixels; kwargs... )
353
378
end
354
379
364
389
abs = false,
365
390
polar = false,
366
391
color = false,
392
+ box = nothing,
367
393
kwargs...
368
394
)
369
395
@@ -406,6 +432,10 @@ Numbers can be provided instead of booleans to override the default rates.
406
432
- **`color`** toggles coloring of the phase angle. Can also be set to
407
433
either the name of, or a `ColorScheme`, or a function `θ -> Color`.
408
434
435
+ - **`box`** if set to `(a, b, s)` shades the area where the the output
436
+ is within the box `a` and `b` in the color `s`. Can also be a list of
437
+ multiple boxes.
438
+
409
439
Remaining keyword arguments are passed to Makie.
410
440
"""
411
441
function sawplot (
@@ -419,11 +449,12 @@ function sawplot(
419
449
abs = false ,
420
450
polar = false ,
421
451
color = false ,
452
+ box = nothing ,
422
453
kwargs...
423
454
)
424
455
425
456
interactiveshadedplot (f, w -> DC. sawplotshader (
426
- w; real, imag, rect, angle, abs, polar, color
457
+ w; real, imag, rect, angle, abs, polar, color, box
427
458
), limits, pixels; kwargs... )
428
459
end
429
460
0 commit comments