Example #1
0
 def plot_trace(self):
     """
     Plot membrane potential trace of the unit designated by the
     trace_coords list. This plot has trace_n data points.
     """
     trace_offset = 0
     for trace in self.membrane_potential_trace:
         vectorplot(trace + trace_offset, style="b-")
         vectorplot(trace + trace_offset, style="rx")
         trace_offset += 3
Example #2
0
 def plot_trace(self):
     """
     Plot membrane potential trace of the unit designated by the
     trace_coords list. This plot has trace_n data points.
     """
     trace_offset=0
     for trace in self.membrane_potential_trace:
         vectorplot(trace+trace_offset,style="b-")
         vectorplot(trace+trace_offset,style="rx")
         trace_offset += 3
Example #3
0
def plott(t,tytle,filename):

    from pylab import title,xlabel,ylabel,savefig,figure,annotate,figtext

    builds=[]
    versions=[]
    times=[]
    for build,data in t.items():
        if data is not None:
            builds.append(build)
            versions.append(data[1])
            times.append(data[2]*data[3]/99.0)


    from topo.command.pylabplot import vectorplot
    figure()
    vectorplot(times,versions,style='bx')


    title(tytle)
    xlabel("svnversion")
    ylabel("time /s")


    xshift=2
    yshift=1
    arrowprops={'width':0.01,'frac':0.05,'headwidth':0}
    for key,point in _keys_and_points(annotations):
        text = key
        version = point[0]
        timing = point[1] or svnversion_timings[version]
        text_coords = version+xshift,timing+yshift
        annotate(text,(version,timing),xytext=text_coords,arrowprops=arrowprops)

    savefig(filename+"_svnversion.png")

    figure()
    vectorplot(times,builds,style='bx')

    title("lissom_oo_or.ty, 250 iterations")
    xlabel("build")
    ylabel("time /s")

    savefig(filename+"_buildno.png")
Example #4
0
def plott(t, tytle, filename):

    from pylab import title, xlabel, ylabel, savefig, figure, annotate, figtext

    builds = []
    versions = []
    times = []
    for build, data in t.items():
        if data is not None:
            builds.append(build)
            versions.append(data[1])
            times.append(data[2] * data[3] / 99.0)

    from topo.command.pylabplot import vectorplot
    figure()
    vectorplot(times, versions, style='bx')

    title(tytle)
    xlabel("svnversion")
    ylabel("time /s")

    xshift = 2
    yshift = 1
    arrowprops = {'width': 0.01, 'frac': 0.05, 'headwidth': 0}
    for key, point in _keys_and_points(annotations):
        text = key
        version = point[0]
        timing = point[1] or svnversion_timings[version]
        text_coords = version + xshift, timing + yshift
        annotate(text, (version, timing),
                 xytext=text_coords,
                 arrowprops=arrowprops)

    savefig(filename + "_svnversion.png")

    figure()
    vectorplot(times, builds, style='bx')

    title("lissom_oo_or.ty, 250 iterations")
    xlabel("build")
    ylabel("time /s")

    savefig(filename + "_buildno.png")