|
9 | 9 | from shapely.geometry import Point, box |
10 | 10 | from shapely import affinity |
11 | 11 | from scipy.ndimage.filters import gaussian_filter |
12 | | -from shapely.geometry import Point, LineString, MultiPolygon, Polygon |
| 12 | +from shapely.geometry import Point, MultiPolygon, Polygon |
13 | 13 | from shapely.ops import nearest_points, unary_union |
14 | 14 | from shapely.geometry.collection import GeometryCollection |
15 | 15 | from scipy.optimize import minimize_scalar |
16 | | -import pickle |
17 | 16 |
|
18 | 17 | """ package imports """ |
19 | 18 | from SuPyMode.Tools.Directories import RootPath |
20 | 19 | from SuPyMode.Tools.Special import gradientO4 |
21 | 20 | from SuPyMode.Tools.utils import ToList, Axes |
22 | | -from SuPyMode.Plotting.PlotsUtils import FieldMap |
23 | 21 | from SuPyMode.Plotting.Plots import Scene, Axis, Mesh, Contour |
24 | 22 | from SuPyMode.Tools.utils import ObjectUnion |
25 | 23 |
|
@@ -292,17 +290,17 @@ def Plot(self): |
292 | 290 | Title = f'Refractive index structure', |
293 | 291 | Legend = False, |
294 | 292 | ColorBar = True, |
295 | | - ColorbarPosition = 'right', |
296 | 293 | Grid = False, |
297 | 294 | Equal = True, |
| 295 | + DiscreetColorbar = True, |
| 296 | + ColorbarPosition = 'right', |
298 | 297 | xScale = 'linear', |
299 | 298 | yScale = 'linear') |
300 | 299 |
|
301 | 300 | artist = Mesh(X = self.X, |
302 | 301 | Y = self.Y, |
303 | 302 | Scalar = self._Mesh, |
304 | | - ColorMap = 'cool', |
305 | | - DiscretNorm = self.AllIndex, |
| 303 | + ColorMap = 'Blues', |
306 | 304 | ) |
307 | 305 |
|
308 | 306 | ax.AddArtist(artist) |
|
0 commit comments