Repository navigation
Omasheet 0.1.13
Plots you declare in the file, sixteen kinds with curve fitting, and dozens of non-SI units that make Omasheet a working tool for conversions. Numbers also follow a published set of type laws.
Install or update
On macOS (Apple silicon or Intel) and on Omarchy and Arch Linux (x86_64 or aarch64):
curl -fsSL https://raw.githubusercontent.com/librasteve/omasheet/main/install.sh | bashOn Windows (64-bit), in PowerShell:
irm https://raw.githubusercontent.com/librasteve/omasheet/main/install.ps1 | iexThe macOS app and the Windows build are not code-signed. The installers fetch them in a way that avoids the Gatekeeper and SmartScreen warnings; a zip downloaded by hand will show them.
Plots
A plot is now part of the file, so the chart travels with the data and is rebuilt whenever the numbers change. plot Name declares one, with key: value controls (Plots):
plot Trend
type: line
data: Readings |> select(Time, Value, Limit)
title: Value and limit
fit: straight
- Sixteen kinds, each for a question about the data:
- Change over a sequence:
line,step,area,stackedandwaterfall(how a total is built up). - Comparing and ranking:
bar,hbar(a ranking with the names read in full) andhstacked. - Share of a whole:
pieanddonut. - Spread and distribution:
histogram,box(quartiles, median and outliers) andcandle(aScientificvalue drawn as its uncertainty, or open, high, low and close). - Two or three variables at once:
scatter,bubble(height and size) andheatmap.
- Change over a sequence:
- Curve fitting.
fit: straightdraws the least-squares line through each series,fit: quadraticthe least-squares parabola, each with its equation, andfit: beziera smooth curve through the points. On a log axis (logx,logy) a fit is a power law or an exponential. Read a trend, a rate or a prediction straight off the chart. - Honest charts. A value with an uncertainty gets an error bar, a column of quantities shows its unit at the axis (
units), andoriginmakes an axis reach zero so a bar is not flattered. - Where they appear. The app has a plot pane (F7) beside the sheet: a click on a line, a bar or a heatmap cell lights its row in the sheet, and the settings pane changes the kind, palette and controls. A report draws a plot as an SVG where
{{ Name }}is written (Reports).examples/plots.omxandexamples/plots-report.mdhave one of each kind. - Seven palettes,
ticks,labels,legend,widthandheight, and keyboard navigation of the plot.
Units: convert anything
Omasheet reads and converts the units people actually use, metric or not. 5kg + 300g is 5.3kg, (26.2mi).to('km') is a marathon in kilometres, and a sum or comparison converts the right side to the unit of the left. A dimension that does not match is an error that says so. A column declared Length, Mass or Pressure takes cells in any unit of its kind and shows them all in one.
- Imperial and US units, which have none of the SI's neat prefixes and so are the usual reason to reach for a calculator:
- Length:
inftydmifurftmchainrodthoupicapoint. - Mass:
ozlbstcwttonltongroztdwtslug. - Volume:
galqtptcupfloztbsptspbblimpgalimppintcord. - Area:
ac. - Speed, force, pressure, energy and power:
mphfpslbfozfpsibtuhp. - Temperature:
°Fand°R.
- Length:
- Metric units that are not SI, each an exact multiple of an SI unit:
- Length:
aulyldpcÅand the nautical milenmiwith the knotkn.ly,pcandyrtake prefixes, sokpc,MlyandGyrwork. - Mass: the carat
ct,ktandMt. - Area:
areandbarn. - Pressure and power:
atm,torrand the metric horsepowermhp(hpis the mechanical one). - Angle:
gon,revandrpm. - Radiation:
rem,CiandR. - Other: the jansky
Jy, thetog, the sverdrup and thenit. - Time:
min,h,d,wkandyr.
- Length:
- Computing units for the new world of AI:
tok,flop,opandpx, each its own dimension, with the ratestok.s^-1,FLOPS,OPS,IOPSandbps, and prices such as3USD.Mtok^-1. - Scales:
5ppmis the number 0.000005, andDecimal[.1f; ppm]shows it so. - The results have a kind. The product or quotient of two named quantities is the kind of its dimension:
Force * Lengthis anEnergy,Length / SpeedaDuration. Roots work too,8m^3 ** (1/3)is2m. - Shown as the SI recommends,
m⋅s⁻¹andkg⋅m², and read in that form too. - The unit picker is regrouped by hand (SI Base, Data, Angle, Timespan, Magnitude, Mechanical, Physical, Thermal, Electromagnetic, Astronomical, Chemical, Contextual and Radiation).
- Left out on purpose: cgs units, the rad of dose,
g0,kgfand solid-angledeg².
Durations
A Duration is a kind of Quantity, for time. It reads ISO 8601 (PT1H30M), a quantity of time (139s, 90min) and a signed clock form (+11:30). Two dates or times subtract to one, Duration / Duration is a number, and a column can be shown by Duration[iso], Duration[%H:%M:%S] or any unit.
Stricter type laws
Every number type now has a literal form that shows its type: 1 is an Integer, 1/1 a Fraction, 1.0 a Decimal, 1e0 a Float, 1.0(00)e0 a Scientific and 1+0i a Complex. With no format a number is shown in full in that form, a column you declare is strict about what it holds, and the optional general format gives a rounded display with a · wherever it cuts. The laws are published at omasheet.org/type-laws, and the post The Laws of Type Display explains why. The change is breaking, see below.
In the app
- One app, many files. A new or opened file is a window of its own in the running app, and Cmd+Q on a Mac closes them all. A second launch hands its file to the running app.
- Copy sheet, Paste sheet in a sheet tab's right-click menu, as one undo step, with a warning for the constants, functions and sheets the file lacks.
- Copy a reference by a click on the name at the left of the formula bar.
- Style bar and formats:
Ctrl+Shift+Fpastes a format,Percenttakes a format (Percent[.1f]), andData[*B]picks binary prefixes. Money passes through derived sheets and CSV and XLSX. - Set panels cascade and Escape closes them one at a time, wider columns, custom functions are added and removed in the functions dialog, and
codein a cell is set apart. - Sequences go on in Unicode order:
'α' ... 'ω'. - Fixed: a row picked by number from a calculated sheet,
Top[Item; 0], was refused as out of range.
Breaking
- Typed columns are strict. A cell, an import or a formula result must be of the column's type and nothing is converted for you:
1in aDecimalcolumn is an error, so write1.0or.Decimal(). An undeclared column mixes types. - Display: with no format a number is shown in full. The old round-to-three-places display is the
generalformat, and an import declares its number columns with it.generalshows e notation below1e-9and from1e10. Decimalhas one scale, eighteen places with twenty digits before the point, andDecimal[n]is gone. A product or quotient is rounded once to eighteen places, a tie to even. A format only shows places,Decimal[.2f]; round a value withround(x, 2). A literal with more places is aFraction.Durationshows seconds by default,Duration[s]in its head with numbers in its cells, where it showedPT1H30M. Ask for the old form withDuration[iso]..Quantityand.Durationare gone: aDurationis already a quantity of time.- A comment line is
//, not#, because a#line is a heading in Markdown. value()takes plain numbers and gives the base number without its uncertainty:10.5(3)kg.value()is10.5.- Computing units
tok,flop,opandpxare new dimensions, so an existing name that used one now means the unit. - A version of Omasheet from before plots stops at a
plotline.
