Skip to content

Commit

Permalink
reverting to original material colormap
Browse files Browse the repository at this point in the history
  • Loading branch information
momchil-flex authored and tylerflex committed Jan 31, 2022
1 parent 925db8f commit 35ee15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidy3d/components/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ class StructMediumParams(PatchParamSwitcher):
def get_plot_params(self) -> PatchParams:
"""Returns :class:`PatchParams` based on user-supplied args."""
mat_index = self.medium_map[self.medium]
mat_cmap = cm.Set2 # pylint: disable=no-name-in-module, no-member
m0 = cm.tab20(range(20)) # pylint: disable=no-name-in-module, no-member
m1 = cm.tab20b(range(20)) # pylint: disable=no-name-in-module, no-member
m2 = cm.Set2(range(8)) # pylint: disable=no-name-in-module, no-member
mc = np.vstack((m0, m1, m2))
pick_c = [18, 4, 34, 0, 44, 45, 14, 40, 15, 11, 20, 16]
# pick_c = [20, 40, 0, 34, 44, 45, 14, 4, 15, 11, 16, 18]
pick_c = np.arange(40, 48)
mat_cmap = mc[pick_c, :]

facecolor = mat_cmap[mat_index % len(pick_c), :]
Expand Down

0 comments on commit 35ee15c

Please sign in to comment.