1%feature("docstring") OT::Text 2"Text. 3 4Available constructors: 5 Text(*data, texts, position=3, legend=' '*) 6 7 Text(*dataX, dataY, texts, position=3, legend=' '*) 8 9Parameters 10---------- 11data : 2-d sequence of float 12 Locations of texts 13dataX, dataY : two 2-d sequences of float of dimension 1, or two sequences of float 14 X- and Y-locations of texts 15texts : sequence of str 16 Text content 17position : str 18 Text position; valid values are 'top' (default), 'bottom', 'left' or 'right' 19legend : str 20 Legend of the Text. 21 22Examples 23-------- 24>>> import openturns as ot 25>>> R = ot.CorrelationMatrix(2) 26>>> R[1, 0] = -0.25 27>>> distribution = ot.Normal([-1.5, 0.5], [4.0, 1.0], R) 28>>> sample = distribution.getSample(20) 29>>> myGraph = ot.Graph('Normal sample', 'x1', 'x2', True, '') 30>>> # Create the cloud 31>>> myCloud = ot.Cloud(sample, 'blue', 'fsquare', 'My Cloud') 32>>> myGraph.add(myCloud) 33>>> # Add annotations 34>>> texts = ot.Description(5) 35>>> for i in range(5): texts[i] = str(i+1) 36>>> myText = ot.Text(sample[0:5,:], texts) 37>>> myGraph.add(myText)" 38