From b740a738f11ec566e99ac9c4f674119e7e9428b7 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 11 Aug 2022 22:52:34 +0200 Subject: [PATCH] Update. --- minidiffusion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minidiffusion.py b/minidiffusion.py index cbdb142..ad1cda0 100755 --- a/minidiffusion.py +++ b/minidiffusion.py @@ -81,6 +81,8 @@ ax.hist(d, 25, (-1, 1), histtype = 'stepfilled', color = 'lightblue', density = d = x.flatten().detach().numpy() ax.hist(d, 25, (-1, 1), histtype = 'step', color = 'red', density = True, label = 'Synthesis') +ax.legend(frameon = False, loc = 2) + filename = 'diffusion.pdf' fig.savefig(filename, bbox_inches='tight') -- 2.39.5