# Plot low value bug?

**URL:** <https://scilab.discourse.group/t/plot-low-value-bug/44>\
**Category:** Graphics and plotting\
**Created:** [March 3, 2023, 3:58pm UTC](https://scilab.discourse.group/t/plot-low-value-bug/44 "2023-03-03T15:58:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaudais](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jbaudais](https://scilab.discourse.group/u/jbaudais)\
**Post date:** [March 3, 2023, 3:58pm UTC](https://scilab.discourse.group/t/plot-low-value-bug/44/1 "2023-03-03T15:58:05Z")

</div>

Hi,

The following code gives strange results (Scilab version  
“6.1.1.1626343451”, on Ubuntu 22.04)

plot(1e-8\*rand(1,5))

the y-axis and the y\_ticks are not only limited to the the graphic window. It works fine with higher values.  
Is it a bug with low value?

–Jean-Yves

---

<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:** [March 3, 2023, 4:15pm UTC](https://scilab.discourse.group/t/plot-low-value-bug/44/2 "2023-03-03T16:15:11Z")

</div>

Hello,

Thanks for posting in Scilab’s discourse !

The problem you ar reporting is a very old/annoying bug (see [plot2d([1 2]\*1e-14): Y-axis extending out of its range for small Y values (#16029) · Issues · scilab / scilab · GitLab](https://gitlab.com/scilab/scilab/-/issues/16029)) your command:

```auto
plot(1e-8*rand(1,5))

```

yields the following plot in Scilab 6.1.1:

 ![Capture d’écran 2023-03-03 à 17.10.37](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/17b27e64d22b04270a7155361ab0cd8c8bc7451b.png)  
This bug has been fixed 2 month ago (see [Fix #16029: tick marks were out of range for small scale plots (!4) · Merge requests · scilab / scilab · GitLab](https://gitlab.com/scilab/scilab/-/merge_requests/4)) and this plot will be OK in Scilab 2023.0 (below plot has been made with a recent continuous build of Scilab):  
 ![Capture d’écran 2023-03-03 à 17.10.03](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/fc9c3ea10a3d4aface495145a23c050af9c0dd89.png)

S.
