Skip to content

Commit

Permalink
bug fix in scatter plot
Browse files Browse the repository at this point in the history
bug fix in ebs_plot -> fix_collinear_spin
  • Loading branch information
fvmunoz committed Jan 11, 2024
1 parent 9a2f75d commit eebd36f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyprocar/core/ebs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@ def fix_collinear_spin(self):

if self.projected is not None:
print('old projected.shape', self.projected.shape)
self.projected[... , -1] = -self.projected[... , -1]
shape = list(self.projected.shape)
shape[1] = shape[1]*2
shape[-1] = 1
Expand Down
2 changes: 1 addition & 1 deletion pyprocar/plotter/ebs_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def plot_scatter(self,
alpha=self.config['opacity']['value'][ispin],
)
if self.config['plot_color_bar']['value'] and color_weights is not None:
self.cb = self.fig.colorbar(lc, ax=self.ax)
self.cb = self.fig.colorbar(sc, ax=self.ax)

def plot_parameteric(
self,
Expand Down

0 comments on commit eebd36f

Please sign in to comment.