VisualTest_DrawClouds

(Source code, png, hires.png, pdf)

../../_images/VisualTest_DrawClouds.png
VisualTest_DrawClouds(*args)

Draw clouds from samples.

Available usages:

VisualTest.DrawClouds(sample, distribution)

VisualTest.DrawClouds(sample, sample2)

Parameters:

sample, sample2 : 2-d sequence of float

Samples to draw.

distribution : Distribution

Distribution used to plot the second cloud

Returns:

graph : class:~openturns.Graph

The graph object

Examples

>>> import openturns as ot
>>> from openturns.viewer import View
>>> ot.RandomGenerator.SetSeed(0)
>>> sample1 = ot.Normal(2).getSample(50)
>>> sample2 = ot.Normal(2).getSample(50)
>>> clouds = ot.VisualTest.DrawClouds(sample1, sample2)
>>> View(clouds).show()