# Modify default XYChart parameters

**URL:** https://discourse.paraview.org/t/modify-default-xychart-parameters/9466
**Category:** ParaView Support
**Created:** [April 19, 2022, 5:54pm UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466 "2022-04-19T17:54:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gu.defromont](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@gu.defromont](https://discourse.paraview.org/u/gu.defromont)
#### Post date: [April 19, 2022, 5:54pm UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466/1 "2022-04-19T17:54:34Z")

</div>

Hi,

I would like to specify in a python macro the default parameters (linestyle, linewidth, marker, markersize, color) of a plotdata filter.

 ![Capture4](https://discourse.paraview.org/uploads/default/original/2X/9/9df3da2a3c207f92051af60d18081eef91fe0e5a.png)

Also I could not find the documentation (all attributes and methods) of the corresponding XYChartRepresentation object created.

Regards,  
Guillaume

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 20, 2022, 7:23am UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466/2 "2022-04-20T07:23:08Z")

</div>

Hi @gu.defromont

You can use the python trace to figure it out.

Best,

---

<div class="post-metadata">

### Author: ![gu.defromont](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@gu.defromont](https://discourse.paraview.org/u/gu.defromont)
#### Post date: [April 20, 2022, 7:27am UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466/3 "2022-04-20T07:27:50Z")

</div>

Hello,

Well I cannot find how to change the defaults of the plot data filter in paraview so… I can only change the style options of some series only. I could do it by displaying all blocks and all the series and then change the style display for all of them (but that would mean around a thousands of series with 5000 times steps). .

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 20, 2022, 7:31am UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466/4 "2022-04-20T07:31:27Z")

</div>

You need to loop on them with python.

---

<div class="post-metadata">

### Author: ![gu.defromont](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@gu.defromont](https://discourse.paraview.org/u/gu.defromont)
#### Post date: [April 20, 2022, 7:35am UTC](https://discourse.paraview.org/t/modify-default-xychart-parameters/9466/5 "2022-04-20T07:35:26Z")

</div>

Well that’s gonna take some computational time but if I have no choice…  
To do that I need to go through all the names of the blocks in the multiblock dataset (because I don’t know these names in advance). Do you know how to do that?

Thanks a lot,  
Guillaume
