Skip to content
Snippets Groups Projects
Commit 032dea79 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent 7b12bc63
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,8 @@ def read(dirname):
"amp_speed": np.abs(np.array(amp_speed))}
def fig_hist(xlabel, x, label):
"""Complete figure with histogram. x and label can also be sequences."""
"""Creates a complete figure with histogram. x and label can also be
sequences."""
plt.figure()
plt.hist(x, bins = "auto", histtype = "step", label = label)
......@@ -68,8 +69,8 @@ def fig_hist(xlabel, x, label):
if label is not None: plt.legend()
def fig_distr_funct(xlabel, x, label = None):
"""Complete figure with distribution function. x must be a sequence of
Numpy arrays and label None or a sequence of strings.
"""Creates a complete figure with distribution function. x must be a
sequence of Numpy arrays and label None or a sequence of strings.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment