# How to get access into subplot properties

**URL:** <https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995>\
**Category:** Graphics and plotting\
**Created:** [July 6, 2025, 7:23am UTC](https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995 "2025-07-06T07:23:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_123](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Max\_123](https://scilab.discourse.group/u/Max_123)\
**Post date:** [July 6, 2025, 7:23am UTC](https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995/1 "2025-07-06T07:23:43Z")

</div>

Hi, part of my code is:

subplot(1,2,1);  
plot(x1,ugol,‘-o’);  
f=gcf();  
f.figure\_position=[100,100];  
f.children.tight\_limits=“on”;  
f.children.auto\_scale=“on”;  
f.children.data\_bounds=[-10,10,-20,20];  
xgrid();

subplot(1,2,2);  
plot(S10,Gr,‘–’);  
xgrid();  
f=gcf();  
f.children.tight\_limits=“on”;  
f.children.auto\_scale=“off”;  
f.children.data\_bounds=[G1,G2,-200,200];

The first graph was drawing in needed margins [-10,20,-20,20]. But the second graph have not needed margines - [G1,G2,-200,200]. How can I get access to margines of second graph?

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [July 7, 2025, 7:09am UTC](https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995/2 "2025-07-07T07:09:24Z")

</div>

Hello,

You should try with:

```auto
a1 = subplot(1,2,1);
plot(x1,ugol,‘-o’);
f=gcf();
f.figure_position=[100,100];
a1.tight_limits=“on”;
a1.auto_scale=“on”;
a1.data_bounds=[-10,10,-20,20];
xgrid();

a2 = subplot(1,2,2);
plot(S10,Gr,‘–’);
xgrid();
a2.tight_limits=“on”;
a2.auto_scale=“off”;
a2.data_bounds=[G1,G2,-200,200];

```

Best regards.

---

<div class="post-metadata">

**Author:** ![Max\_123](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Max\_123](https://scilab.discourse.group/u/Max_123)\
**Post date:** [July 7, 2025, 1:17pm UTC](https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995/3 "2025-07-07T13:17:58Z")

</div>

It didn’t help out .

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [July 7, 2025, 1:41pm UTC](https://scilab.discourse.group/t/how-to-get-access-into-subplot-properties/995/4 "2025-07-07T13:41:44Z")

</div>

Can you send a screenshot to explain what the problem is?
