|
24 | 24 | SymbolN, |
25 | 25 | SymbolRule, |
26 | 26 | ) |
| 27 | + |
27 | 28 | from mathics.builtin.base import Builtin |
28 | | -from mathics.builtin.scoping import dynamic_scoping |
29 | | -from mathics.builtin.options import options_to_rules |
30 | | -from mathics.builtin.numeric import chop |
31 | 29 | from mathics.builtin.graphics import Graphics |
32 | | -from mathics.builtin.graphics3d import Graphics3D |
| 30 | +from mathics.builtin.drawing.graphics3d import Graphics3D |
| 31 | +from mathics.builtin.numeric import chop |
| 32 | +from mathics.builtin.options import options_to_rules |
| 33 | +from mathics.builtin.scoping import dynamic_scoping |
33 | 34 |
|
34 | 35 |
|
35 | 36 | try: |
|
39 | 40 | except ImportError: |
40 | 41 | has_compile = False |
41 | 42 |
|
42 | | - |
43 | 43 | def gradient_palette(color_function, n, evaluation): # always returns RGB values |
44 | 44 | if isinstance(color_function, String): |
45 | 45 | color_data = Expression("ColorData", color_function).evaluate(evaluation) |
@@ -340,7 +340,6 @@ def get_plot_range(values, all_values, option): |
340 | 340 |
|
341 | 341 |
|
342 | 342 | class _Plot(Builtin): |
343 | | - from .graphics import Graphics |
344 | 343 |
|
345 | 344 | attributes = ("HoldAll",) |
346 | 345 |
|
@@ -705,8 +704,6 @@ def find_excl(excl): |
705 | 704 | class _Chart(Builtin): |
706 | 705 | attributes = ("HoldAll",) |
707 | 706 |
|
708 | | - from .graphics import Graphics |
709 | | - |
710 | 707 | options = Graphics.options.copy() |
711 | 708 | options.update( |
712 | 709 | { |
@@ -1135,8 +1132,6 @@ class Histogram(Builtin): |
1135 | 1132 | = -Graphics- |
1136 | 1133 | """ |
1137 | 1134 |
|
1138 | | - from .graphics import Graphics |
1139 | | - |
1140 | 1135 | attributes = ("HoldAll",) |
1141 | 1136 |
|
1142 | 1137 | options = Graphics.options.copy() |
@@ -2224,8 +2219,6 @@ class ListPlot(_ListPlot): |
2224 | 2219 | = -Graphics- |
2225 | 2220 | """ |
2226 | 2221 |
|
2227 | | - from .graphics import Graphics |
2228 | | - |
2229 | 2222 | attributes = ("HoldAll",) |
2230 | 2223 |
|
2231 | 2224 | options = Graphics.options.copy() |
@@ -2264,8 +2257,6 @@ class ListLinePlot(_ListPlot): |
2264 | 2257 | = -Graphics- |
2265 | 2258 | """ |
2266 | 2259 |
|
2267 | | - from .graphics import Graphics |
2268 | | - |
2269 | 2260 | attributes = ("HoldAll",) |
2270 | 2261 |
|
2271 | 2262 | options = Graphics.options.copy() |
@@ -2344,8 +2335,6 @@ class Plot3D(_Plot3D): |
2344 | 2335 | #> Plot3D[x + 2y, {x, -2, 2}, {y, -2, 2}] // TeXForm |
2345 | 2336 | """ |
2346 | 2337 |
|
2347 | | - from .graphics import Graphics |
2348 | | - |
2349 | 2338 | attributes = ("HoldAll",) |
2350 | 2339 |
|
2351 | 2340 | options = Graphics.options.copy() |
@@ -2428,8 +2417,6 @@ class DensityPlot(_Plot3D): |
2428 | 2417 | = -Graphics- |
2429 | 2418 | """ |
2430 | 2419 |
|
2431 | | - from .graphics import Graphics |
2432 | | - |
2433 | 2420 | attributes = ("HoldAll",) |
2434 | 2421 |
|
2435 | 2422 | options = Graphics.options.copy() |
|
0 commit comments