Skip to content

Commit ba56ca2

Browse files
new background for examples?
1 parent 069ca08 commit ba56ca2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

examples/data/example1-output.png

-116 KB
Loading

examples/example1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def plot_density_of_states(ax, e, dos):
106106
fig.add_subplot(gs[3,0]),
107107
fig.add_subplot(gs[3,1])]).reshape(2,2)
108108

109+
fig.patch.set_facecolor('#2e2e2e')
110+
109111
ax1 = plot_density_of_states(ax1, e_mesh, dos)
110112

111113
vmax = np.max(rixs[-1][0])
@@ -125,5 +127,5 @@ def plot_density_of_states(ax, e, dos):
125127
ax[1,1]= plot_xas(ax[1,1], [xray[0], xray[1][1]], lw=1, color='xkcd:red', label='p')
126128
ax[1,1].set_xlabel(r"E (eV)"); ax[1,1].set_ylabel("XAS"); ax[1,1].legend(loc='best'); ax[1,1].set_ylim(0, ); ax[1,1].set_yticklabels([])
127129
plt.subplots_adjust(hspace=0.6, wspace=0.5)
128-
plt.savefig('data/example1-output.png', transparent=True, dpi=300, bbox_inches='tight')
130+
plt.savefig('data/example1-output.png', bbox_inches='tight')
129131
#plt.show()

0 commit comments

Comments
 (0)