Skip to content

Commit db808f1

Browse files
author
jiyuang
committed
fix single ax bug
1 parent b3287b2 commit db808f1

File tree

1 file changed

+1
-1
lines changed
  • tools/plot-tools/abacus_plot

1 file changed

+1
-1
lines changed

tools/plot-tools/abacus_plot/dos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _parial_plot(self,
391391
Returns:
392392
DOSPlot object: for manually plotting picture with dosplot.ax
393393
"""
394-
if not isinstance(ax, list):
394+
if isinstance(ax, axes.Axes):
395395
ax = [ax]
396396

397397
dos, totnum = parse_projected_data(self.orbitals, species, keyname)

0 commit comments

Comments
 (0)