# Add Line on vtkXYPlotActor

**URL:** https://discourse.vtk.org/t/add-line-on-vtkxyplotactor/9774
**Category:** Support
**Created:** [November 9, 2022, 5:34pm UTC](https://discourse.vtk.org/t/add-line-on-vtkxyplotactor/9774 "2022-11-09T17:34:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fvitello](https://discourse.vtk.org/user_avatar/discourse.vtk.org/fvitello/32/4652_2.png) [@fvitello](https://discourse.vtk.org/u/fvitello)
#### Post date: [November 9, 2022, 5:34pm UTC](https://discourse.vtk.org/t/add-line-on-vtkxyplotactor/9774/1 "2022-11-09T17:34:16Z")

</div>

Hi,

Is possibile to add a vertical line (with a different color) in a vtkXYPlotActor plot created from a vtkImageProbeFilter dataset?

Thanks

---

<div class="post-metadata">

### Author: ![fvitello](https://discourse.vtk.org/user_avatar/discourse.vtk.org/fvitello/32/4652_2.png) [@fvitello](https://discourse.vtk.org/u/fvitello)
#### Post date: [November 9, 2022, 6:03pm UTC](https://discourse.vtk.org/t/add-line-on-vtkxyplotactor/9774/2 "2022-11-09T18:03:44Z")

</div>

Ok, i have found that it is possible through SetReferenceXValue(value). Is it possible to set a different color for the Reference Line?
