@@ -669,12 +669,13 @@ def add_lightness_smoothing_to_rgb(rgb, delta):
669
669
670
670
We can call this on grids of values::
671
671
672
- sage: import numpy as np # needs numpy
673
- sage: from sage. plot. complex_plot import add_lightness_smoothing_to_rgb # needs numpy
674
- sage: add_lightness_smoothing_to_rgb( # abs tol 1e-4 # needs numpy
672
+ sage: # needs numpy
673
+ sage: import numpy as np
674
+ sage: from sage. plot. complex_plot import add_lightness_smoothing_to_rgb
675
+ sage: add_lightness_smoothing_to_rgb( # abs tol 1e-4
675
676
.... : np. array( [[[0, 0.25, 0.5 ]]]) , np. array( [[0.75 ]]))
676
677
array( [[[0.75 , 0.8125, 0.875 ]]])
677
- sage: add_lightness_smoothing_to_rgb( # abs tol 1e-4 # needs numpy
678
+ sage: add_lightness_smoothing_to_rgb( # abs tol 1e-4
678
679
.... : np. array( [[[0, 0.25, 0.5 ]]]) , np. array( [[0.75 ]]))
679
680
array( [[[0.75 , 0.8125, 0.875 ]]])
680
681
"""
@@ -734,15 +735,15 @@ def add_contours_to_rgb(rgb, delta, dark_rate=0.5):
734
735
EXAMPLES::
735
736
736
737
sage: # needs numpy
737
- sage: import numpy as np # needs numpy
738
- sage: from sage. plot. complex_plot import add_contours_to_rgb # needs numpy
739
- sage: add_contours_to_rgb( np. array( [[[0, 0.25, 0.5 ]]]) , # abs tol 1e-4 # needs numpy
738
+ sage: import numpy as np
739
+ sage: from sage. plot. complex_plot import add_contours_to_rgb
740
+ sage: add_contours_to_rgb( np. array( [[[0, 0.25, 0.5 ]]]) , # abs tol 1e-4
740
741
.... : np. array( [[0.75 ]]))
741
742
array( [[[0.25 , 0.625, 1. ]]])
742
- sage: add_contours_to_rgb( np. array( [[[0, 0, 0 ]]]) , # abs tol 1e-4 # needs numpy
743
+ sage: add_contours_to_rgb( np. array( [[[0, 0, 0 ]]]) , # abs tol 1e-4
743
744
.... : np. array( [[1 ]]))
744
745
array( [[[0.5, 0.5, 0.5 ]]])
745
- sage: add_contours_to_rgb( np. array( [[[1, 1, 1 ]]]) , # abs tol 1e-4 # needs numpy
746
+ sage: add_contours_to_rgb( np. array( [[[1, 1, 1 ]]]) , # abs tol 1e-4
746
747
.... : np. array( [[-0.5 ]]))
747
748
array( [[[0.75, 0.75, 0.75 ]]])
748
749
0 commit comments