# Is it possible to add label to CSCOPXY block?

**URL:** <https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775>\
**Category:** Xcos\
**Created:** [December 30, 2024, 3:20pm UTC](https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775 "2024-12-30T15:20:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pion3k](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pion3k](https://scilab.discourse.group/u/pion3k)\
**Post date:** [December 30, 2024, 3:20pm UTC](https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775/1 "2024-12-30T15:20:20Z")

</div>

CSCOPE blocks have “Name of scope” field which allows to add window label (explicit window name). Is it possible to name CSCOPXY block as well? It is difficult to figure out which CSCOPXY belongs to which window only by number in case you have multiple CSCOPXY on one simulation.

---

<div class="post-metadata">

**Author:** ![pion3k](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pion3k](https://scilab.discourse.group/u/pion3k)\
**Post date:** [May 12, 2025, 6:06pm UTC](https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775/2 "2025-05-12T18:06:38Z")

</div>

Hi, any update on that? Does anyone struggle from this limitation as well?

---

<div class="post-metadata">

**Author:** ![pion3k](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pion3k](https://scilab.discourse.group/u/pion3k)\
**Post date:** [May 12, 2025, 6:15pm UTC](https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775/3 "2025-05-12T18:15:36Z")

</div>

Ok, AI gave me this solution (in case someone needs it):

```auto
1. Configure the CSCOPXY block with:

Output window number: 100

2. Run the simulation. The plot window will open with the default title.
3. In the Scilab console, run:

scf(100); // Select window 100
gcf().figure_name = "Position vs Velocity"; // Set title

```

Is it really the only way to do that?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [May 13, 2025, 6:36am UTC](https://scilab.discourse.group/t/is-it-possible-to-add-label-to-cscopxy-block/775/4 "2025-05-13T06:36:00Z")

</div>

Hello,

You can use the “Set context” menu item and just copy this line in the text area:

```auto
scf(100).figure_name="my window";

```

However, manually setting the figure number in the block will still be necessary, but at least you wont have to type anything in the command line.

S.
