Why does the plot line disappear?

In the case below, plot line disappears.

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.

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

My version of julia is v1.11.0

1 Like

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

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

1 Like

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

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?