You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These mutating methods cannot update the limits of the axes (xlims & ylims) as plots are drawn onto a fixed canvas. The limits must be set by the plotting function that creates the figure or by creating an empty `Plot`:
64
+
65
+
These mutating methods cannot update the limits of the axes as plots are drawn onto a fixed canvas. The limits must be set beforehand by the plotting function that creates the figure or by creating an empty `Plot`:
Plotting multiple series is supported by providing a `Matrix` (`<: AbstractMatrix`) for the `y` argument, with the individual series corresponding to its columns. Auto-labeling is by default, but you can also label each series by providing a `Vector` or a `1xn``Matrix` such as `["series 1" "series2" ...]`:
Physical quantities of [`Unitful.jl`](https://github.com/PainterQubits/Unitful.jl) are supported through [package extensions - weak dependencies](https://pkgdocs.julialang.org/dev/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions)):
@@ -112,7 +117,7 @@ Here is a list of the main high-level functions for common scenarios:
112
117
a, t =1u"m/s^2", (0:100) *u"s"
113
118
lineplot(a /2* t .^2, a * t, xlabel="position", ylabel="speed", height=10)
Use `head_tail` to mimic plotting arrows (`:head`, `:tail` or `:both`) where the length of the "arrow" head or tail is controlled using `head_tail_frac` where e.g. giving a value of `0.1` means `10%` of the segment length:
These mutating methods cannot update the limits of the axes as plots are drawn onto a fixed canvas. The limits must be set beforehand by the plotting function that creates the figure or by creating an empty `Plot`:
375
+
376
+
$(indent(examples.lineplot4))
377
+
370
378
One can adjust the plot `height` and `width` to the current terminal size by using `height=:auto` and/or `width=:auto`.
371
379
372
380
You can reverse/flip the `Plot` axes by setting `xflip=true` and/or `yflip=true` on plot creation.
It's also possible to specify a function and a range:
382
390
383
-
$(indent(examples.lineplot5))
391
+
$(indent(examples.lineplot6))
384
392
385
393
You can also plot lines by specifying an intercept and slope:
386
394
387
-
$(indent(examples.lineplot6))
395
+
$(indent(examples.lineplot7))
388
396
389
397
Plotting multiple series is supported by providing a `Matrix` (`<: AbstractMatrix`) for the `y` argument, with the individual series corresponding to its columns. Auto-labeling is by default, but you can also label each series by providing a `Vector` or a `1xn` `Matrix` such as `["series 1" "series2" ...]`:
390
398
391
-
$(indent(examples.lineplot7))
399
+
$(indent(examples.lineplot8))
392
400
393
401
Physical quantities of [`Unitful.jl`](https://github.com/PainterQubits/Unitful.jl) are supported through [package extensions - weak dependencies](https://pkgdocs.julialang.org/dev/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions)):
394
402
395
-
$(indent(examples.lineplot8))
403
+
$(indent(examples.lineplot9))
396
404
397
405
Intervals from [`IntervalSets.jl`](https://github.com/JuliaMath/IntervalSets.jl) are supported:
398
406
399
-
$(indent(examples.lineplot9))
407
+
$(indent(examples.lineplot10))
400
408
401
409
Use `head_tail` to mimic plotting arrows (`:head`, `:tail` or `:both`) where the length of the "arrow" head or tail is controlled using `head_tail_frac` where e.g. giving a value of `0.1` means `10%` of the segment length:
402
410
403
-
$(indent(examples.lineplot10))
411
+
$(indent(examples.lineplot11))
404
412
405
413
`UnicodePlots` exports `hline!` and `vline!` for drawing vertical and horizontal lines on a plot:
406
414
407
-
$(indent(examples.lineplot11))
415
+
$(indent(examples.lineplot12))
408
416
409
417
</details>
410
418
@@ -738,13 +746,14 @@ Inspired by [TextPlots.jl](https://github.com/sunetos/TextPlots.jl), which in tu
738
746
if true
739
747
cursor_hide(stdout)
740
748
run(`clear`)
741
-
print(stdout, g)
749
+
println(stdout, g)
742
750
win = if "WINDOWID" ∈ keys(ENV)
743
751
ENV["WINDOWID"]
744
752
else
745
753
readchomp(`xdotool getactivewindow`)
746
754
end
747
755
tmp = tempname()
756
+
sleep(1)
748
757
# XX%x100% => remove the right scrollbar (run in a big terminal window)
0 commit comments