SNABSuite  0.x
Spiking Neural Architecture Benchmark Suite
Functions | Variables
histogram Namespace Reference

Functions

def histogram_plot (data, xlabel, title="", bins='auto', normed=False)
 

Variables

 parser = argparse.ArgumentParser(description='Plot a histogram')
 
 metavar
 
 nargs
 
 help
 
 type
 
 str
 
 default
 
 False
 
 action
 
 args = parser.parse_args()
 
 results = np.recfromtxt(target_file, delimiter=',', loose=True)
 
 xlabel = DIM_LABELS[target_file.split(".csv")[0].split("_")[-1]]
 
 title = target_file.split("/")[-1].split("_")[0]
 
 fig = histogram_plot(results, xlabel, title, bins=args.b, normed=args.n)
 
 format
 
 bbox_inches
 

Function Documentation

def histogram.histogram_plot (   data,
  xlabel,
  title = "",
  bins = 'auto',
  normed = False 
)

Definition at line 46 of file histogram.py.

46 def histogram_plot(data, xlabel, title="", bins='auto', normed=False):
47  fig = plt.figure()
48  if bins is not "auto":
49  plt.hist(data, bins=int(bins), density=normed, color='black',
50  histtype="bar", rwidth=0.95)
51  else:
52  plt.hist(data, density=normed, color='black',
53  histtype="bar", rwidth=0.95)
54  plt.xlabel(xlabel)
55  if normed:
56  plt.ylabel("Probability")
57  else:
58  plt.ylabel("Frequency")
59  if not title == "":
60  plt.title(title)
61  return fig
62 
def histogram_plot(data, xlabel, title="", bins='auto', normed=False)
Definition: histogram.py:46

Variable Documentation

histogram.action

Definition at line 35 of file histogram.py.

histogram.args = parser.parse_args()

Definition at line 37 of file histogram.py.

histogram.bbox_inches

Definition at line 79 of file histogram.py.

histogram.default

Definition at line 31 of file histogram.py.

histogram.False

Definition at line 35 of file histogram.py.

histogram.fig = histogram_plot(results, xlabel, title, bins=args.b, normed=args.n)

Definition at line 77 of file histogram.py.

histogram.format

Definition at line 78 of file histogram.py.

histogram.help

Definition at line 28 of file histogram.py.

histogram.metavar

Definition at line 28 of file histogram.py.

histogram.nargs

Definition at line 28 of file histogram.py.

histogram.parser = argparse.ArgumentParser(description='Plot a histogram')

Definition at line 25 of file histogram.py.

histogram.results = np.recfromtxt(target_file, delimiter=',', loose=True)

Definition at line 68 of file histogram.py.

histogram.str

Definition at line 31 of file histogram.py.

string histogram.title = target_file.split("/")[-1].split("_")[0]

Definition at line 71 of file histogram.py.

histogram.type

Definition at line 31 of file histogram.py.

histogram.xlabel = DIM_LABELS[target_file.split(".csv")[0].split("_")[-1]]

Definition at line 69 of file histogram.py.