Visualize pairsΒΆ
In this example we are going to a visualize a multidimensional sample by drawing each pair of 2-d marginal clouds.
[13]:
from __future__ import print_function
import openturns as ot
[14]:
# Create data to visualize
R = ot.CorrelationMatrix(3)
for i in range(1, 3):
R[i, i - 1] = -0.4
distribution = ot.Normal([0.] * 3, [5.] * 3, R)
sample = distribution.getSample(200)
[15]:
# Create a pairs graphs
graph = ot.Graph("Pairs graph", " ", " ", True, "")
pairs = ot.Pairs(sample, "Pairs example",
sample.getDescription(), "blue", "bullet")
graph.add(pairs)
graph
[15]: