Skip to content

Commit

Permalink
Merge pull request #88 from Team-RADDISH/tk/plot-std
Browse files Browse the repository at this point in the history
Fix x-axis in ESS plot to start from 1
  • Loading branch information
tkoskela committed Jun 4, 2020
2 parents ba7a28d + 081f59f commit 21514d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/Plot_tdac_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
"for ts in list(fh[\"weights\"])[1:]:\n",
" ess.append(1/sum(fh[\"weights\"][ts][:]**2))\n",
"fig = plt.figure()\n",
"plt.plot(ess[1:])\n",
"t = np.arange(1,np.size(ess))\n",
"plt.plot(t,ess[1:])\n",
"plt.xlabel('Time step')\n",
"plt.ylabel('Estimated Sample Size (1 / sum(weight^2))');"
]
Expand Down

0 comments on commit 21514d3

Please sign in to comment.