|
6 | 6 | points, as another parameter, and plot or show the function applied to the data. |
7 | 7 | """ |
8 | 8 |
|
9 | | - |
10 | 9 | import palettable |
11 | | - |
12 | 10 | from mathics.builtin.graphics import Graphics |
13 | 11 | from mathics.builtin.options import options_to_rules |
14 | 12 | from mathics.core.atoms import Integer, Integer0, MachineReal, String |
|
33 | 31 | SymbolStyle, |
34 | 32 | ) |
35 | 33 | from mathics.eval.drawing.colors import COLOR_PALETTES, get_color_palette |
36 | | -from pymathics.vectorizedplot.eval.plot import get_plot_range |
37 | | -import pymathics.vectorizedplot.eval.plot3d_vectorized as plot_module |
38 | 34 | from mathics.eval.nevaluator import eval_N |
39 | 35 |
|
| 36 | +import pymathics.vectorizedplot.eval.plot3d_vectorized as plot_module |
| 37 | +from pymathics.vectorizedplot.eval.plot import get_plot_range |
| 38 | + |
40 | 39 | # The vectorized plot function generates GraphicsComplex using NumericArray, |
41 | 40 | # which no consumer will currently understand. So lets make it opt-in for now. |
42 | 41 | # If it remains opt-in we'll probably want some combination of env variables, |
|
45 | 44 | # TODO: work out exactly how to deploy. |
46 | 45 |
|
47 | 46 |
|
48 | | - |
49 | | - |
50 | | - |
51 | 47 | # get the plot eval function for the given class, |
52 | 48 | # depending on whether vectorized plot functions are enabled |
53 | 49 | def get_plot_eval_function(cls): |
@@ -197,7 +193,8 @@ def to_numbers(li): |
197 | 193 |
|
198 | 194 | from math import ceil |
199 | 195 |
|
200 | | - from mpmath import ceil as mpceil, floor as mpfloor |
| 196 | + from mpmath import ceil as mpceil |
| 197 | + from mpmath import floor as mpfloor |
201 | 198 |
|
202 | 199 | class Distribution: |
203 | 200 | def __init__(self, data, n_bins): |
|
0 commit comments