@@ -541,6 +541,7 @@ def plot_eps(
541
541
vlim : Tuple [float , float ] = None ,
542
542
ax : Ax = None ,
543
543
eps_component : Optional [PermittivityComponent ] = None ,
544
+ eps_lim : Tuple [Union [float , None ], Union [float , None ]] = (None , None ),
544
545
) -> Ax :
545
546
"""Plot each of simulation's components on a plane defined by one nonzero x,y,z coordinate.
546
547
The permittivity is plotted in grayscale based on its value at the specified frequency.
@@ -577,6 +578,8 @@ def plot_eps(
577
578
Component of the permittivity tensor to plot for anisotropic materials,
578
579
e.g. ``"xx"``, ``"yy"``, ``"zz"``, ``"xy"``, ``"yz"``, ...
579
580
Defaults to ``None``, which returns the average of the diagonal values.
581
+ eps_lim : Tuple[float, float] = None
582
+ Custom limits for eps coloring.
580
583
581
584
Returns
582
585
-------
@@ -614,6 +617,7 @@ def plot_eps(
614
617
hlim = hlim ,
615
618
vlim = vlim ,
616
619
eps_component = eps_component ,
620
+ eps_lim = eps_lim ,
617
621
)
618
622
ax = self .plot_sources (ax = ax , x = x , y = y , z = z , hlim = hlim , vlim = vlim , alpha = source_alpha )
619
623
ax = self .plot_monitors (ax = ax , x = x , y = y , z = z , hlim = hlim , vlim = vlim , alpha = monitor_alpha )
@@ -643,6 +647,7 @@ def plot_structures_eps(
643
647
hlim : Tuple [float , float ] = None ,
644
648
vlim : Tuple [float , float ] = None ,
645
649
eps_component : Optional [PermittivityComponent ] = None ,
650
+ eps_lim : Tuple [Union [float , None ], Union [float , None ]] = (None , None ),
646
651
) -> Ax :
647
652
"""Plot each of simulation's structures on a plane defined by one nonzero x,y,z coordinate.
648
653
The permittivity is plotted in grayscale based on its value at the specified frequency.
@@ -678,6 +683,8 @@ def plot_structures_eps(
678
683
Component of the permittivity tensor to plot for anisotropic materials,
679
684
e.g. ``"xx"``, ``"yy"``, ``"zz"``, ``"xy"``, ``"yz"``, ...
680
685
Defaults to ``None``, which returns the average of the diagonal values.
686
+ eps_lim : Tuple[float, float] = None
687
+ Custom limits for eps coloring.
681
688
682
689
Returns
683
690
-------
@@ -713,6 +720,7 @@ def plot_structures_eps(
713
720
grid = self .grid ,
714
721
reverse = reverse ,
715
722
eps_component = eps_component ,
723
+ eps_lim = eps_lim ,
716
724
)
717
725
718
726
@equal_aspect
0 commit comments