How to adjust the range of the coordinate axis when using UnicodePlots.jl to plot a graph?

How to adjust the range of the coordinate axis when using UnicodePlots.jl to plot a graph?

As shown in the figure, I hope that the x-axis range can be from 1 to 201. Is it possible to achieve this?

image

Use xlim and / or ylim, those keywords are described in UnicodePlots.jl/README.md at master · JuliaPlots/UnicodePlots.jl · GitHub.

Thanks! I have realized it with the following code. But is this the only way? And, can I keep the ylim default?

p = Plot([NaN], [NaN]; xlim=(1, 201), ylim=(0,300))
lineplot!(p, [1:201;])