Skip to content

Commit

Permalink
FIX: Flake (mne-tools#10540)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Apr 18, 2022
1 parent a0d1125 commit dc88b7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions logo/generate_mne_logos.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
y = np.linspace(-1., 1., h_px // 2)
X, Y = np.meshgrid(x, y)
# initialize figure (no axes, margins, etc)
fig = plt.figure(1, figsize=(w_px / dpi, h_px / dpi), facecolor='k', frameon=False, dpi=dpi)
fig = plt.figure(1, figsize=(w_px / dpi, h_px / dpi), facecolor='k',
frameon=False, dpi=dpi)
ax = plt.Axes(fig, [0., 0., 1., 1.])
ax.set_axis_off()
fig.add_axes(ax)
Expand Down Expand Up @@ -199,5 +200,6 @@
ax.set_xlim(xmin - xpad, xl[1] + xpad)
ax.set_ylim(ymax + ypad, ymin - ypad)
plt.draw()
plt.savefig(op.join(static_dir, 'mne_logo_small.svg'), dpi=dpi, transparent=True)
plt.savefig(op.join(static_dir, 'mne_logo_small.svg'),
dpi=dpi, transparent=True)
plt.close()

0 comments on commit dc88b7a

Please sign in to comment.