Scientific plots: functions, scatter, histograms, error bars, log axes, vectors #19

Closed
opened 2026-11-01 23:22:49 +00:00 by Weissstreifen · 0 comments

Plots for scientific and nerdy data, on top of the axes of the bar and line charts (#7, #11):

  • Function plot: plot "sin(x) * e^(-x/5)" x=0..20, with a small expression parser (operators, ^, the usual functions, constants pi and e), drawn on like the line chart. Several functions, with labels written as formulas (#18).
  • Scatter plot: points pop in (all, in order, or by a column), sizes and colors from columns, an optional regression line that draws itself, with its formula and R².
  • Histogram: bins from raw values (bins=20 or a width), drawn with the bar sprite. An optional normal curve over it.
  • Error bars and confidence bands for bars, lines and scatter plots (columns for the low and high values or ±).
  • Axes: log scales, scientific notation for tick labels (3.2 × 10⁶ drawn with real exponents through the formula renderer), units, axis titles as formulas.
  • Vectors and a coordinate grid: arrows in a coordinate system that grow from the origin, for physics and linear algebra explanations.

Done when: a scene shows a function plot, a scatter plot with a regression line and a histogram with a normal curve, each animated in, and a log axis with formula tick labels.

Plots for scientific and nerdy data, on top of the axes of the bar and line charts (#7, #11): - **Function plot:** `plot "sin(x) * e^(-x/5)" x=0..20`, with a small expression parser (operators, `^`, the usual functions, constants `pi` and `e`), drawn on like the line chart. Several functions, with labels written as formulas (#18). - **Scatter plot:** points pop in (all, in order, or by a column), sizes and colors from columns, an optional regression line that draws itself, with its formula and R². - **Histogram:** bins from raw values (`bins=20` or a width), drawn with the bar sprite. An optional normal curve over it. - **Error bars** and confidence bands for bars, lines and scatter plots (columns for the low and high values or ±). - **Axes:** log scales, scientific notation for tick labels (`3.2 × 10⁶` drawn with real exponents through the formula renderer), units, axis titles as formulas. - **Vectors and a coordinate grid:** arrows in a coordinate system that grow from the origin, for physics and linear algebra explanations. **Done when:** a scene shows a function plot, a scatter plot with a regression line and a histogram with a normal curve, each animated in, and a log axis with formula tick labels.
Weissstreifen added this to the M2 Charts milestone 2026-11-01 23:22:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#19
No description provided.