QUVA-Lab/artemis

Plotting drunkard walks

danlm opened this issue · 4 comments

danlm commented

Python 3.4 chokes on line 18 of artemis/examples/drunkards_walk_example.py:
plot_handles.append(plt.plot(drunkards[:, :, 0], drunkards[:, :, 1], color='C{}'.format(i)))
It tries to convert color to an RGB value. I replaced color with label, but you lose the color separation for each run:
figure_1

I believe this comes from the fact that you're using an old matplotlib version (older than 1.x). If you can, this is should be solved by pip install --upgrade matplotlib

danlm commented

Ok, I updated from matplotlib 1.3.1 to 2.2.2 and it works:
figure_1

danlm commented

As a side note, one of the sample commands at the end of the file is "display 1", which is not recognized. "compare 1" achieves the intended effect, though.

Ah, thanks, should be show 1: #132