diff --git a/src/aiidalab_qe/common/bands_pdos/bandpdoswidget.py b/src/aiidalab_qe/common/bands_pdos/bandpdoswidget.py index c1687adbd..575c8c761 100644 --- a/src/aiidalab_qe/common/bands_pdos/bandpdoswidget.py +++ b/src/aiidalab_qe/common/bands_pdos/bandpdoswidget.py @@ -57,8 +57,9 @@ def render(self): return self.dos_atoms_group = ipw.Dropdown( - description="Group by:", + description="Atom grouping:", style={"description_width": "initial"}, + layout=ipw.Layout(width="350px"), ) ipw.dlink( (self._model, "dos_atoms_group_options"), @@ -74,8 +75,9 @@ def render(self): ) self.dos_plot_group = ipw.Dropdown( - description="Plot contributions:", + description="Orbital grouping:", style={"description_width": "initial"}, + layout=ipw.Layout(width="350px"), ) ipw.dlink( (self._model, "dos_plot_group_options"), @@ -94,6 +96,7 @@ def render(self): placeholder="e.g. 1..5 8 10", description="Select atoms:", style={"description_width": "initial"}, + layout=ipw.Layout(width="350px"), ) ipw.link( (self._model, "selected_atoms"), diff --git a/src/aiidalab_qe/common/bands_pdos/model.py b/src/aiidalab_qe/common/bands_pdos/model.py index 6e076e449..690ef10ca 100644 --- a/src/aiidalab_qe/common/bands_pdos/model.py +++ b/src/aiidalab_qe/common/bands_pdos/model.py @@ -29,17 +29,17 @@ class BandsPdosModel(Model): dos_atoms_group_options = tl.List( trait=tl.List(tl.Unicode()), default_value=[ - ("Kinds", "kinds"), - ("Atomic position", "atoms"), + ("Group by element (atomic species)", "kinds"), + ("No grouping (each site separately)", "atoms"), ], ) dos_atoms_group = tl.Unicode("kinds") dos_plot_group_options = tl.List( trait=tl.List(tl.Unicode()), default_value=[ - ("Total", "total"), - ("Orbital", "orbital"), - ("Angular momentum", "angular_momentum"), + ("Group all orbitals per atom", "total"), + ("Group by angular momentum ", "angular_momentum"), + ("No grouping (each orbital separately)", "orbital"), ], ) dos_plot_group = tl.Unicode("total")