# Why does the plot line disappear?

**URL:** <https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406>\
**Category:** Visualization\
**Tags:** question, package, plots\
**Created:** [November 8, 2024, 7:00am UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406 "2024-11-08T07:00:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TongTongYee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tongtongyee/32/207244_2.png) [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Post date:** [November 8, 2024, 7:00am UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406/1 "2024-11-08T07:00:58Z")

</div>

In the case below, plot line disappears.

```julia
using Plots
plot([1.0e9,1,1,1,1],ylim=(0.0,10))

```

But, in the another case below, plot line does not disappear. Everything operates normally.

```julia
plot([1,1,1,1],ylim=(0.0,10))

```

My version of julia is v1.11.0

---

<div class="post-metadata">

**Author:** ![yanwenwang24](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yanwenwang24/32/212953_2.png) [@yanwenwang24](https://discourse.julialang.org/u/yanwenwang24)\
**Post date:** [November 8, 2024, 7:18am UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406/2 "2024-11-08T07:18:18Z")

</div>

This seems to be an issue worthy of reporting to the repository.

---

<div class="post-metadata">

**Author:** ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Post date:** [November 8, 2024, 6:35pm UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406/3 "2024-11-08T18:35:53Z")

</div>

Part of the line in the first case is outside of your `ylim`, so it’s not on the plot.

---

<div class="post-metadata">

**Author:** ![TongTongYee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tongtongyee/32/207244_2.png) [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Post date:** [December 6, 2024, 11:52am UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406/5 "2024-12-06T11:52:09Z")

</div>

> [@TongTongYee](#):
>
> But the line inside my `ylim` ([1,1,1,1]) does not appear either.

But the line inside my ylim ([1,1,1,1]) does not appear either.

---

<div class="post-metadata">

**Author:** ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Post date:** [December 6, 2024, 2:26pm UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406/6 "2024-12-06T14:26:54Z")

</div>

I just tried your example with Jula 1.11.1, Plots 1.40.9, and the GR backend (on Linux). I got a correct plot; the line did not disappear. What backend are you using?
