colorbar
colorbar(bare command) orcolorbar()(function)
Input: bare command · Output: no output
What it is
Accepted, with or without a [extend=]-style argument in the function form (so MATLAB-style scripts parse) but currently a documented no-op in both forms โ no colorbar is actually drawn.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
colorbar (bare command) or colorbar() (function) | bare command —not documented yet | no output | Accepted, with or without a [extend=]-style argument in the function form (so MATLAB-style scripts parse) but currently a documented no-op in both forms โ no colorbar is actually drawn. |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
figure()
t = linspace(0, 1, 200)
plot(t, sin(2 * pi * 5 * t))
xticks([0, 0.5, 1])
xticklabels("start", "mid", "end")
yticks([-1, 0, 1])
yticklabels("low", "zero", "high")
fontfamily("sans")
fontsize(tick = 10, label = 12, title = 14)
figure_background("#f7f7f7")
colormap("viridis")
colorbar()
grid()
box()
subplot(1, 1, 1)
xscale("linear")
yscale("linear")
title("Styled panel")
output
ยท plot: figure 8 (200 points)
from plotting