Utility functions facititating easy plotting with matplotlib.
Functions of note:
Author: | Kjetil Valle <kjetilva@stud.ntnu.no> |
---|
Create horzontal bar chart with lists of data values.
Plots a bar chart given a dictionary of data with a type as key, and a sequence of values corresponding to elements in bar_names as value.
Place legend with legend_place as string argument matching /(lower|middle|upper) (right|center|left)/.
Create histogram from a set of samples.
Number of bins and range can be specified in the same manner as to numpy.histogram().
Crop/scale with axis as a 4-tuple of (x_min,x_max,y_min,y_max).
Plot a 2D plot from provided x- and y-values.
Given lists of x_vals and y_vals, a plot is drawn. Axes are labeled using x_label and y_label.
Plot can be cropped/scaled with axis as a 4-tuple of (x_min,x_max,y_min,y_max).
Place legend with legend_place as string argument matching /(lower|middle|upper) (right|center|left)/.