Skip to content

Commit

Permalink
Enable setting band structure grid
Browse files Browse the repository at this point in the history
  • Loading branch information
utf committed Nov 22, 2020
1 parent cd24a32 commit 79ef4ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
10 changes: 1 addition & 9 deletions sumo/plotting/bs_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,5 @@ def _maketicks(self, ax, ylabel='Energy (eV)'):

ax.set_xticks(unique_d)
ax.set_xticklabels(unique_l)
ax.xaxis.grid(True, ls='-')
ax.xaxis.grid(True)
ax.set_ylabel(ylabel)

trans_xdata_yaxes = blended_transform_factory(ax.transData,
ax.transAxes)
ax.vlines(unique_d, 0, 1,
transform=trans_xdata_yaxes,
colors=rcParams['grid.color'],
linewidth=rcParams['grid.linewidth'],
zorder=3)
1 change: 1 addition & 0 deletions sumo/plotting/sumo_base.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ axes.titlesize : 22
axes.linewidth : 1.5

grid.linewidth : 1.5
grid.linestyle : -
grid.color : black

lines.linewidth : 2
Expand Down
2 changes: 1 addition & 1 deletion sumo/plotting/sumo_bs.mplstyle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
xtick.bottom : False
xtick.bottom : True
ytick.right : True

axes.prop_cycle : cycler('color', ['3953a4', 'faa316', 'd93b2b', '0db14b', 'f0a3ff', '0075dc', '993f00', '4c005c', '426600', 'ff0010', '9dcc00', 'c20088', '003380', 'ffa405', 'ffff00', 'ff5005', '5ef1f2', '740aff', '990000', '00998f', '005c31', '2bce48', 'ffcc99', '94ffb5', '8f7c00', '6fa8bb', '808080'])

0 comments on commit 79ef4ec

Please sign in to comment.