2626)
2727
2828from mathics .builtin .base import Builtin
29- from mathics .builtin .drawing . graphics import Graphics
29+ from mathics .builtin .graphics import Graphics
3030from mathics .builtin .drawing .graphics3d import Graphics3D
3131from mathics .builtin .numbers .numeric import chop
3232from mathics .builtin .options import options_to_rules
4040except ImportError :
4141 has_compile = False
4242
43-
4443def gradient_palette (color_function , n , evaluation ): # always returns RGB values
4544 if isinstance (color_function , String ):
4645 color_data = Expression ("ColorData" , color_function ).evaluate (evaluation )
@@ -65,7 +64,7 @@ def gradient_palette(color_function, n, evaluation): # always returns RGB value
6564 if len (colors .leaves ) != n :
6665 return
6766
68- from mathics .builtin .drawing . graphics import expression_to_color , ColorError
67+ from mathics .builtin .graphics import expression_to_color , ColorError
6968
7069 try :
7170 objects = [expression_to_color (x ) for x in colors .leaves ]
@@ -341,7 +340,6 @@ def get_plot_range(values, all_values, option):
341340
342341
343342class _Plot (Builtin ):
344- from .graphics import Graphics
345343
346344 attributes = ("HoldAll" ,)
347345
@@ -706,8 +704,6 @@ def find_excl(excl):
706704class _Chart (Builtin ):
707705 attributes = ("HoldAll" ,)
708706
709- from .graphics import Graphics
710-
711707 options = Graphics .options .copy ()
712708 options .update (
713709 {
@@ -1136,8 +1132,6 @@ class Histogram(Builtin):
11361132 = -Graphics-
11371133 """
11381134
1139- from .graphics import Graphics
1140-
11411135 attributes = ("HoldAll" ,)
11421136
11431137 options = Graphics .options .copy ()
@@ -2225,8 +2219,6 @@ class ListPlot(_ListPlot):
22252219 = -Graphics-
22262220 """
22272221
2228- from .graphics import Graphics
2229-
22302222 attributes = ("HoldAll" ,)
22312223
22322224 options = Graphics .options .copy ()
@@ -2265,8 +2257,6 @@ class ListLinePlot(_ListPlot):
22652257 = -Graphics-
22662258 """
22672259
2268- from .graphics import Graphics
2269-
22702260 attributes = ("HoldAll" ,)
22712261
22722262 options = Graphics .options .copy ()
@@ -2345,8 +2335,6 @@ class Plot3D(_Plot3D):
23452335 #> Plot3D[x + 2y, {x, -2, 2}, {y, -2, 2}] // TeXForm
23462336 """
23472337
2348- from .graphics import Graphics
2349-
23502338 attributes = ("HoldAll" ,)
23512339
23522340 options = Graphics .options .copy ()
@@ -2429,8 +2417,6 @@ class DensityPlot(_Plot3D):
24292417 = -Graphics-
24302418 """
24312419
2432- from .graphics import Graphics
2433-
24342420 attributes = ("HoldAll" ,)
24352421
24362422 options = Graphics .options .copy ()
0 commit comments