| |
- Cdf(cdf, complement=False, transform=None, **options)
- Plots a CDF as a line.
Args:
cdf: Cdf object
complement: boolean, whether to plot the complementary CDF
transform: string, one of 'exponential', 'pareto', 'weibull', 'gumbel'
options: keyword args passed to pyplot.plot
Returns:
dictionary with the scale options that should be passed to
myplot.Save or myplot.Show
- Cdfs(cdfs, complement=False, transform=None, **options)
- Plots a sequence of CDFs.
cdfs: sequence of CDF objects
complement: boolean, whether to plot the complementary CDF
transform: string, one of 'exponential', 'pareto', 'weibull', 'gumbel'
options: keyword args passed to pyplot.plot
- Clf()
- Clears the figure and any hints that have been set.
- Config(**options)
- Configures the plot.
Pulls options out of the option dictionary and passes them to
title, xlabel, ylabel, xscale, yscale, xticks, yticks, axis, legend,
and loc.
- Contour(obj, pcolor=False, contour=True, imshow=False, **options)
- Makes a contour plot.
d: map from (x, y) to z, or object that provides GetDict
pcolor: boolean, whether to make a pseudocolor plot
contour: boolean, whether to make a contour plot
imshow: boolean, whether to use pyplot.imshow
options: keyword args passed to pyplot.pcolor and/or pyplot.contour
- Diff(t)
- Compute the differences between adjacent elements in a sequence.
Args:
t: sequence of number
Returns:
sequence of differences (length one less than t)
- Figure(**options)
- Sets options for the current figure.
- Hist(hist, **options)
- Plots a Pmf or Hist with a bar plot.
Args:
hist: Hist or Pmf object
options: keyword args passed to pyplot.bar
- Hists(hists, **options)
- Plots two histograms as interleaved bar plots.
Options are passed along for all PMFs. If you want different
options for each pmf, make multiple calls to Pmf.
Args:
hists: list of two Hist or Pmf objects
options: keyword args passed to pyplot.plot
- Pcolor(xs, ys, zs, pcolor=True, contour=False, **options)
- Makes a pseudocolor plot.
xs:
ys:
zs:
pcolor: boolean, whether to make a pseudocolor plot
contour: boolean, whether to make a contour plot
options: keyword args passed to pyplot.pcolor and/or pyplot.contour
- Plot(xs, ys, style='', **options)
- Plots a line.
Args:
xs: sequence of x values
ys: sequence of y values
style: style string passed along to pyplot.plot
options: keyword args passed to pyplot.plot
- Pmf(pmf, **options)
- Plots a Pmf or Hist as a line.
Args:
pmf: Hist or Pmf object
options: keyword args passed to pyplot.plot
- Pmfs(pmfs, **options)
- Plots a sequence of PMFs.
Options are passed along for all PMFs. If you want different
options for each pmf, make multiple calls to Pmf.
Args:
pmfs: sequence of PMF objects
options: keyword args passed to pyplot.plot
- PrePlot(num=None, rows=1, cols=1)
- Takes hints about what's coming.
num: number of lines that will be plotted
- Save(root=None, formats=None, **options)
- Saves the plot in the given formats.
For options, see Config.
Args:
root: string filename root
formats: list of string formats
options: keyword args used to invoke various pyplot functions
- SaveFormat(root, fmt='eps')
- Writes the current figure to a file in the given format.
Args:
root: string filename root
fmt: string format
- Scatter(xs, ys, **options)
- Makes a scatter plot.
xs: x values
ys: y values
options: options passed to pyplot.scatter
- Show(**options)
- Shows the plot.
For options, see Config.
options: keyword args used to invoke various pyplot functions
- SubPlot(plot_number)
- Underride(d, **options)
- Add key-value pairs to d only if key is not in d.
If d is None, create a new dictionary.
d: dictionary
options: keyword args to add to d
- cdf = Cdf(cdf, complement=False, transform=None, **options)
- Plots a CDF as a line.
Args:
cdf: Cdf object
complement: boolean, whether to plot the complementary CDF
transform: string, one of 'exponential', 'pareto', 'weibull', 'gumbel'
options: keyword args passed to pyplot.plot
Returns:
dictionary with the scale options that should be passed to
myplot.Save or myplot.Show
- cdfs = Cdfs(cdfs, complement=False, transform=None, **options)
- Plots a sequence of CDFs.
cdfs: sequence of CDF objects
complement: boolean, whether to plot the complementary CDF
transform: string, one of 'exponential', 'pareto', 'weibull', 'gumbel'
options: keyword args passed to pyplot.plot
- clf = Clf()
- Clears the figure and any hints that have been set.
- config = Config(**options)
- Configures the plot.
Pulls options out of the option dictionary and passes them to
title, xlabel, ylabel, xscale, yscale, xticks, yticks, axis, legend,
and loc.
- contour = Contour(obj, pcolor=False, contour=True, imshow=False, **options)
- Makes a contour plot.
d: map from (x, y) to z, or object that provides GetDict
pcolor: boolean, whether to make a pseudocolor plot
contour: boolean, whether to make a contour plot
imshow: boolean, whether to use pyplot.imshow
options: keyword args passed to pyplot.pcolor and/or pyplot.contour
- diff = Diff(t)
- Compute the differences between adjacent elements in a sequence.
Args:
t: sequence of number
Returns:
sequence of differences (length one less than t)
- figure = Figure(**options)
- Sets options for the current figure.
- hist = Hist(hist, **options)
- Plots a Pmf or Hist with a bar plot.
Args:
hist: Hist or Pmf object
options: keyword args passed to pyplot.bar
- hists = Hists(hists, **options)
- Plots two histograms as interleaved bar plots.
Options are passed along for all PMFs. If you want different
options for each pmf, make multiple calls to Pmf.
Args:
hists: list of two Hist or Pmf objects
options: keyword args passed to pyplot.plot
- main()
- pcolor = Pcolor(xs, ys, zs, pcolor=True, contour=False, **options)
- Makes a pseudocolor plot.
xs:
ys:
zs:
pcolor: boolean, whether to make a pseudocolor plot
contour: boolean, whether to make a contour plot
options: keyword args passed to pyplot.pcolor and/or pyplot.contour
- plot = Plot(xs, ys, style='', **options)
- Plots a line.
Args:
xs: sequence of x values
ys: sequence of y values
style: style string passed along to pyplot.plot
options: keyword args passed to pyplot.plot
- pmf = Pmf(pmf, **options)
- Plots a Pmf or Hist as a line.
Args:
pmf: Hist or Pmf object
options: keyword args passed to pyplot.plot
- pmfs = Pmfs(pmfs, **options)
- Plots a sequence of PMFs.
Options are passed along for all PMFs. If you want different
options for each pmf, make multiple calls to Pmf.
Args:
pmfs: sequence of PMF objects
options: keyword args passed to pyplot.plot
- preplot = PrePlot(num=None, rows=1, cols=1)
- Takes hints about what's coming.
num: number of lines that will be plotted
- save = Save(root=None, formats=None, **options)
- Saves the plot in the given formats.
For options, see Config.
Args:
root: string filename root
formats: list of string formats
options: keyword args used to invoke various pyplot functions
- scatter = Scatter(xs, ys, **options)
- Makes a scatter plot.
xs: x values
ys: y values
options: options passed to pyplot.scatter
- show = Show(**options)
- Shows the plot.
For options, see Config.
options: keyword args used to invoke various pyplot functions
- subplot = SubPlot(plot_number)
|