Skip to content

Commit

Permalink
force shapes for plotting chains
Browse files Browse the repository at this point in the history
  • Loading branch information
mathematicalmichael authored Jul 22, 2022
1 parent 3735a8b commit e9f87b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mud_examples/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ def plot_scalar_poisson_summary(

def plotChain(mud_chain, ref_param, color="k", s=100):
num_steps = len(mud_chain)
current_point = mud_chain[0]
current_point = mud_chain[0].reshape(-1,1)
plt.scatter(current_point[0], current_point[1], c="b", s=s)
for i in range(0, num_steps):
next_point = mud_chain[i]
next_point = mud_chain[i].reshape(-1,1)
points = np.hstack([current_point, next_point])
plt.plot(points[0, :], points[1, :], c=color)
current_point = next_point
Expand Down

0 comments on commit e9f87b7

Please sign in to comment.