# Setting XY Plot time range programmatically

**URL:** <https://forum.plexim.com/t/setting-xy-plot-time-range-programmatically/1975>\
**Category:** PLECS\
**Created:** [March 27, 2025, 3:15pm UTC](https://forum.plexim.com/t/setting-xy-plot-time-range-programmatically/1975 "2025-03-27T15:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandro\_Calligaro](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sandro\_Calligaro](https://forum.plexim.com/u/Sandro_Calligaro)\
**Post date:** [March 27, 2025, 3:15pm UTC](https://forum.plexim.com/t/setting-xy-plot-time-range-programmatically/1975/1 "2025-03-27T15:15:57Z")

</div>

The Plot XY has quite a number of parameters, but it looks like there is no way to set the position of the time cursors (time range plotted) programmatically.  
Am I missing something?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [March 27, 2025, 8:34pm UTC](https://forum.plexim.com/t/setting-xy-plot-time-range-programmatically/1975/2 "2025-03-27T20:34:38Z")

</div>

Indeed the “GetCursorData” command is not currently supported for XY Plots.

---

<div class="post-metadata">

**Author:** ![Sandro\_Calligaro](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sandro\_Calligaro](https://forum.plexim.com/u/Sandro_Calligaro)\
**Post date:** [March 30, 2025, 8:41pm UTC](https://forum.plexim.com/t/setting-xy-plot-time-range-programmatically/1975/3 "2025-03-30T20:41:17Z")

</div>

Thank you, Kris.  
If such a feature was available, I would try using it for running animations from a simulation script (for teaching purposes, mainly).
