# Options to draw graph for HSIC

**URL:** <https://openturns.discourse.group/t/options-to-draw-graph-for-hsic/218>\
**Category:** Python usage\
**Tags:** sensitivity-analysis\
**Created:** [June 24, 2022, 8:43am UTC](https://openturns.discourse.group/t/options-to-draw-graph-for-hsic/218 "2022-06-24T08:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flore](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Flore](https://openturns.discourse.group/u/Flore)\
**Post date:** [June 24, 2022, 8:43am UTC](https://openturns.discourse.group/t/options-to-draw-graph-for-hsic/218/1 "2022-06-24T08:43:56Z")

</div>

Hello everybody  
I begin to use HSIC modul with openturns  
I would like to know if it is possible to change the input parameters flags on graph  
By default it is ‘X1’, ‘X2’ etc  
But in my case input parameter numerotation is discontinuous (‘P6’, ‘P9’, ‘P16’, ‘P17’ etc)  
I managed to change the main title  
But I do not see any option in graph class to modifiy these “flag names” for each point on these graphs  
I also defined a description for my sample, but it seems not to be used

Any idea or suggestion to change this ?

Thanks in advance!

Regards  
Flore

---

<div class="post-metadata">

**Author:** ![regislebrun](https://yyz2.discourse-cdn.com/free1/user_avatar/openturns.discourse.group/regislebrun/32/154_2.png) [@regislebrun](https://openturns.discourse.group/u/regislebrun)\
**Post date:** [June 25, 2022, 6:38pm UTC](https://openturns.discourse.group/t/options-to-draw-graph-for-hsic/218/2 "2022-06-25T18:38:48Z")

</div>

Hi Flore,

Once you have produced your graph (let’s call it graph\_hsic) you just have to extract the last drawable, change its behavior and put it back into the graph:

```auto
dr = graph_hsic.getDrawables()
dr[-1] = ot.Text(dr[-1].getData(), ["Y1", "Y3", "Y9"])
graph_hsic.setDrawables(dr)
ot.Show(graph_hsic)

```

and you are done!

Cheers

Régis

---

<div class="post-metadata">

**Author:** ![schueller](https://yyz2.discourse-cdn.com/free1/user_avatar/openturns.discourse.group/schueller/32/3_2.png) [@schueller](https://openturns.discourse.group/u/schueller)\
**Post date:** [June 28, 2022, 3:02pm UTC](https://openturns.discourse.group/t/options-to-draw-graph-for-hsic/218/3 "2022-06-28T15:02:46Z")

</div>

maybe it would be better to reuse the input sample description by default:

> <https://github.com/openturns/openturns/pull/2072>
>
> \- #2073 
> \- #2076 
> \- Rename \*CenteredMoments methods to \*CentralMoments methods… (as found in the litterature)
> \- New QuantileMatchingFactory class to estimate a distribution from quantiles
> \- New HistogramFactory.buildFromQuantiles method to build an histogram from quantiles
> \- New MethodOfMomentsFactory.buildFromMoments method to build from moments
> \- New UniformMuSigma parametrization
> \- Allow MaximumLikelihoodFactory with distribution of dim\>1
> \- HSIC graphs to reuse sample description
