<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Plugin_UserLab_RandomWalk</id>
	<title>Plugin UserLab RandomWalk - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Plugin_UserLab_RandomWalk"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Plugin_UserLab_RandomWalk&amp;action=history"/>
	<updated>2026-05-15T19:24:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Plugin_UserLab_RandomWalk&amp;diff=2606&amp;oldid=prev</id>
		<title>LabRPS at 01:13, 26 January 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Plugin_UserLab_RandomWalk&amp;diff=2606&amp;oldid=prev"/>
		<updated>2025-01-26T01:13:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:13, 25 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This feature aims to simulate a random walk simulation with different options and further implementations. The main implementations are:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This feature aims to simulate a random walk simulation with different options and further implementations. The main implementations are:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1&lt;/del&gt;# Simulation of multiple random walkers with different speeds&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Simulation of multiple random walkers with different speeds&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;# High randomization of speeds, start points, colorization etc.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# High randomization of speeds, start points, colorization etc.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;# Enabling options to simulate the random walk of your needs like different neighborhood movement patterns (Neumann/Moore), enabling random start points, running the code multiple times, saving the plot and/or results automatically...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Enabling options to simulate the random walk of your needs like different neighborhood movement patterns (Neumann/Moore), enabling random start points, running the code multiple times, saving the plot and/or results automatically...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Properties ===  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Properties ===  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import GeneralToolsGui&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import GeneralToolsGui&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Before you run this macro, simulation must be run and there  must be a table containing the simulated wind velocities.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def simulateRandomWalk():&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def simulateRandomWalk():&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     #install the UserLab plugin with all its plugged features&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     #install the UserLab plugin with all its plugged features&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Plugin_UserLab_RandomWalk&amp;diff=2605&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;{{Plugin |Name=Random Walk Plugin |Description=This plugin implements tools for the simulation of random walk. |Author=Koffi Daniel |Version=1.0 |Date=21/12/2024 |Features= Random Walk   |RPSVersion=All }}  == Introduction == A random walk is a mathematical object, known as a stochastic or random process, that describes a path that consists of a succession of random steps on some mathematical space such as the integers. An elementary example of a random...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Plugin_UserLab_RandomWalk&amp;diff=2605&amp;oldid=prev"/>
		<updated>2025-01-26T01:04:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Plugin |Name=Random Walk Plugin |Description=This plugin implements tools for the simulation of random walk. |Author=Koffi Daniel |Version=1.0 |Date=21/12/2024 |Features= &lt;a href=&quot;#Random_Walk&quot;&gt;Random Walk&lt;/a&gt;   |RPSVersion=All }}  == Introduction == A random walk is a mathematical object, known as a stochastic or random process, that describes a path that consists of a succession of random steps on some mathematical space such as the integers. An elementary example of a random...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Plugin&lt;br /&gt;
|Name=Random Walk Plugin&lt;br /&gt;
|Description=This plugin implements tools for the simulation of random walk.&lt;br /&gt;
|Author=Koffi Daniel&lt;br /&gt;
|Version=1.0&lt;br /&gt;
|Date=21/12/2024&lt;br /&gt;
|Features= [[#Random_Walk|Random Walk]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|RPSVersion=All&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
A random walk is a mathematical object, known as a stochastic or random process, that describes a path that consists of a succession of random steps on some mathematical space such as the integers. An elementary example of a random walk is the random walk on the integer number line, which starts at 0 and at each step moves +1 or -1 with equal probability [https://www.geeksforgeeks.org/random-walk-implementation-python/ (Source)].&lt;br /&gt;
&lt;br /&gt;
[[Image:Plugin_UserLab_RandomWalk_Screenshot_1.png|1024px]] &lt;br /&gt;
&lt;br /&gt;
== QBlade Methods == &lt;br /&gt;
This feature aims to simulate a random walk simulation with different options and further implementations. The main implementations are:&lt;br /&gt;
&lt;br /&gt;
1# Simulation of multiple random walkers with different speeds&lt;br /&gt;
2# High randomization of speeds, start points, colorization etc.&lt;br /&gt;
3# Enabling options to simulate the random walk of your needs like different neighborhood movement patterns (Neumann/Moore), enabling random start points, running the code multiple times, saving the plot and/or results automatically...&lt;br /&gt;
&lt;br /&gt;
=== Properties === &lt;br /&gt;
&lt;br /&gt;
* {{PropertyData|TotalSteps}}:  Number of total steps every walker shall take.&lt;br /&gt;
* {{PropertyData|NumberOfWalker}}: Number of total walkers to be created.&lt;br /&gt;
* {{PropertyData|MovePattern}}: Choose neighborhood movement pattern between Neumann (4 directions) or Moore (8 directions).&lt;br /&gt;
* {{PropertyData|RandomStart}}: Do you want different (random) start points for each walker or let all plots start at 0,0?.&lt;br /&gt;
&lt;br /&gt;
=== Scripting === &lt;br /&gt;
&lt;br /&gt;
{{Code|code=&lt;br /&gt;
import numpy as np&lt;br /&gt;
import math&lt;br /&gt;
import time&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
import LabRPS&lt;br /&gt;
import UserLabObjects&lt;br /&gt;
import UserLabGui&lt;br /&gt;
import UserLab&lt;br /&gt;
import GeneralToolsGui&lt;br /&gt;
&lt;br /&gt;
# Before you run this macro, simulation must be run and there  must be a table containing the simulated wind velocities.&lt;br /&gt;
def simulateRandomWalk():&lt;br /&gt;
    #install the UserLab plugin with all its plugged features&lt;br /&gt;
    installResuslt = UserLab.installPlugin(&amp;quot;RandomWalkPlugin&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    # create new document&lt;br /&gt;
    doc = LabRPS.newDocument()&lt;br /&gt;
&lt;br /&gt;
    # create new simulation with default name &amp;quot;Simulation&amp;quot; in the above document&lt;br /&gt;
    sim = UserLabObjects.makeSimulation(doc)&lt;br /&gt;
    &lt;br /&gt;
    # check if the simulation is successfully created&lt;br /&gt;
    if not sim:&lt;br /&gt;
         LabRPS.Console.PrintError(&amp;quot;The simulation does not exist.\n&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    # create the random walk plugin&lt;br /&gt;
    randomWalk = UserLabObjects.makeFeature(&amp;quot;randomWalk&amp;quot;, sim.Name,  &amp;quot;Random Walk&amp;quot;, &amp;quot;Simulation Method&amp;quot;)&lt;br /&gt;
    randomWalk.TotalSteps = 1000&lt;br /&gt;
    randomWalk.NumberOfWalker = 2&lt;br /&gt;
&lt;br /&gt;
    # check if the created tool is good&lt;br /&gt;
    if not randomWalk:&lt;br /&gt;
        LabRPS.Console.PrintError(&amp;quot;The creation of the random walk simulation method was not successuful.\n&amp;quot;)&lt;br /&gt;
        return None&lt;br /&gt;
&lt;br /&gt;
    # run the tool&lt;br /&gt;
    sim.setActiveFeature(randomWalk)        &lt;br /&gt;
    # Run simulation and output the first(0) sample&lt;br /&gt;
    # store starting time &lt;br /&gt;
    begin = time.time() &lt;br /&gt;
    wlks = sim.simulate(0)&lt;br /&gt;
    # store end time &lt;br /&gt;
    end = time.time()&lt;br /&gt;
    LabRPS.Console.PrintMessage(f&amp;quot;Total runtime of the simulaltion is {end - begin} seconds\n&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    if LabRPS.GuiUp:&lt;br /&gt;
       import UserLabGui&lt;br /&gt;
       import GeneralToolsGui&lt;br /&gt;
       UserLabGui.setActiveSimulation(sim)&lt;br /&gt;
       GeneralToolsGui.GeneralToolsPyTool.showArray(1 + int(randomWalk.TotalSteps), 2*int(randomWalk.NumberOfWalker), wlks, True)&lt;br /&gt;
       import numpy&lt;br /&gt;
       arr = numpy.asarray(wlks)&lt;br /&gt;
       w = 0&lt;br /&gt;
       plot_walker_path(int(randomWalk.NumberOfWalker), arr[:,w], arr[:,w+1], 1, 1, True, w+1)&lt;br /&gt;
       plot_walker_path(int(randomWalk.NumberOfWalker), arr[:,w+2], arr[:,w+3], 1, 1, True, w+2)&lt;br /&gt;
       plot_all_walkers(int(randomWalk.TotalSteps), int(randomWalk.NumberOfWalker), False, int(sim.NumberOfSample))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def plot_walker_path(n_walkers, x, y, walker_type, walker_speed, random_start, plottedNumber):&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Plot the coords of every step&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    ax = plt.gca()  # get current axes&lt;br /&gt;
    next_col = next(ax._get_lines.prop_cycler)[&amp;quot;color&amp;quot;]  # iterate through colors&lt;br /&gt;
    plt.plot(&lt;br /&gt;
        x,&lt;br /&gt;
        y,&lt;br /&gt;
        alpha=0.33,&lt;br /&gt;
        lw=2,&lt;br /&gt;
        color=next_col,&lt;br /&gt;
        label=&amp;quot;Walker {}&amp;quot;.format(plottedNumber),&lt;br /&gt;
    )&lt;br /&gt;
    plt.scatter(x, y, color=next_col, alpha=1, s=2)&lt;br /&gt;
    if n_walkers &amp;lt;= 12:&lt;br /&gt;
        ax.legend(fontsize=&amp;quot;small&amp;quot;, framealpha=0.4, markerscale=1.5)&lt;br /&gt;
    else:&lt;br /&gt;
        pass&lt;br /&gt;
    if random_start == &amp;quot;true&amp;quot;:&lt;br /&gt;
        plt.scatter(&lt;br /&gt;
            x[0],&lt;br /&gt;
            y[0],&lt;br /&gt;
            marker=&amp;quot;P&amp;quot;,&lt;br /&gt;
            s=100,&lt;br /&gt;
            color=next_col,&lt;br /&gt;
            edgecolors=&amp;quot;black&amp;quot;,&lt;br /&gt;
        )&lt;br /&gt;
    else:&lt;br /&gt;
        plt.scatter(&lt;br /&gt;
            0,&lt;br /&gt;
            0,&lt;br /&gt;
            marker=&amp;quot;P&amp;quot;,&lt;br /&gt;
            s=100,&lt;br /&gt;
            color=&amp;quot;white&amp;quot;,&lt;br /&gt;
            edgecolors=&amp;quot;black&amp;quot;,&lt;br /&gt;
        )&lt;br /&gt;
    plt.scatter(&lt;br /&gt;
        x[-1],&lt;br /&gt;
        y[-1],&lt;br /&gt;
        marker=&amp;quot;X&amp;quot;,&lt;br /&gt;
        s=100,&lt;br /&gt;
        color=next_col,&lt;br /&gt;
        edgecolors=&amp;quot;black&amp;quot;,&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def plot_all_walkers(steps, n_walkers, want_plot_saved, run_num):&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Generate plot with precalculated paths and show them together in a plot&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    if n_walkers == 1:&lt;br /&gt;
        plt.title(&lt;br /&gt;
            &amp;quot;{} walker with {} steps simulated&amp;quot;.format(&lt;br /&gt;
                n_walkers, steps&lt;br /&gt;
            )&lt;br /&gt;
        )&lt;br /&gt;
    else:&lt;br /&gt;
        plt.title(&lt;br /&gt;
            &amp;quot;{} walkers with {} steps simulated&amp;quot;.format(&lt;br /&gt;
                n_walkers, steps&lt;br /&gt;
            )&lt;br /&gt;
        )&lt;br /&gt;
    # insert annotation with start and end point&lt;br /&gt;
    plt.annotate(&lt;br /&gt;
        &amp;quot;Start points: +\nEnd points: x&amp;quot;,&lt;br /&gt;
        xy=(0, 0),&lt;br /&gt;
        xytext=(5, 5),&lt;br /&gt;
        xycoords=&amp;quot;figure points&amp;quot;,&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
    plt.show()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
simulateRandomWalk()&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>