From 0cebb1c67db9d81e44a3ae29900e6e9850e679fe Mon Sep 17 00:00:00 2001 From: Anton Akhmerov <anton.akhmerov@gmail.com> Date: Thu, 26 Jul 2018 22:42:29 +0200 Subject: [PATCH] fixup: update plotly output path --- code/bands_2d.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/bands_2d.py b/code/bands_2d.py index 24d35e5e..a8bf9287 100644 --- a/code/bands_2d.py +++ b/code/bands_2d.py @@ -58,9 +58,9 @@ def plot_nfem(): x=momenta, y=momenta, ) - for band, color, opacity - in zip(bands[:2], - ['#cf483d', '#3d88cf'], + for band, color, opacity + in zip(bands[:2], + ['#cf483d', '#3d88cf'], (1, 0.9)) ], layout = go.Layout( @@ -76,9 +76,9 @@ def plot_nfem(): ) ) ) - with open('docs/figures/nfem_2d.html', 'w') as f: + with open('src/figures/nfem_2d.html', 'w') as f: f.write(figure_html(figure= - py.plot(fig, show_link=False, + py.plot(fig, show_link=False, output_type='div', include_plotlyjs=False) )) @@ -112,12 +112,12 @@ def plot_tb(): ) ) ) - with open('docs/figures/tb_2d.html', 'w') as f: + with open('src/figures/tb_2d.html', 'w') as f: f.write(figure_html(figure= - py.plot(fig, show_link=False, + py.plot(fig, show_link=False, output_type='div', include_plotlyjs=False) )) - + if __name__ == '__main__': plot_nfem() -- GitLab