Changes since version 1.1.0¶
New Features¶
-
CoordinateSystem inner data group —
CoordinateSystemnow nests an inner data group (exposed ascs.data_group, withto_data(x, y)for pre-mapping) whose translate+scale transform maps data coordinates onto the plot plane. Plots (plot()/add_plot()) and user drawings are now expressed in scale-world (data) coordinates and placed by the group, so Python-side scaling is only needed for log axes. -
CoordinateSystem vline/hline annotation helpers — draw vertical/horizontal marker lines at fixed data values with
vline(x, ...)/hline(y, ...), update them in place by an optionalname(for animating a moving cursor), and remove them withremove_vline(name)/remove_hline(name). -
CoordinateSystem line/point helpers — draw an arbitrary segment with
line(start, end, ...)and a point marker withpoint(p, ...); each accepts(x, y)tuples orPointinstances, supports create-or-update by an optionalname, and is removable withremove_line(name)/remove_point(name). -
CoordinateSystem annotation labels — the
vline/hline/line/pointhelpers now acceptlabelandlabel_style, attaching a label to the annotation. The line helpers draw aLineentity (a screen-space fat line viaLineStyle, not aPointPath), so labels anchor at the line midpoint and can be moved along the segment withLabelStyle(along=…);pointlabels anchor at the point.
Bug Fixes¶
- Line labels now anchor on the line — the line label anchor previously omitted the line's origin, so labels on lines with a non-zero origin were placed relative to the world origin instead of the line. The anchor now includes the origin.