Skip to content

v1.2.1 (November, 2026)

Latest

Choose a tag to compare

@jeremymanning jeremymanning released this 25 Nov 03:53

A patch release: trails and new styling arguments for animations, labels that stay readable in animations and on streams, and layout fixes for the animated 3-D cube.

Every change is listed in the changelog; these notes summarize it.

Install

pip install --upgrade hypertools

Python 3.10 through 3.13. Extras are unchanged from 1.2.0.

Added

  • Trails and chemtrails with marker formats (#299). tail_duration= and chemtrails=True now work with '-o' and 'o' formats, not only with lines.
  • New animation arguments (#299). head_marker= draws a marker on the last revealed point of each dataset; tail_linewidth= and trail_alpha= style the trail; hold= keeps the last frame for a number of seconds; caption_kwargs= styles the caption; suptitle= and suptitle_kwargs= add a title above the figure.
  • labels= on streaming plots. A callable labels(index, sample) or an iterable consumed in step with the samples. Labels are placed off each other as the stream grows, and are listed in fig.stream_info['labels'].
  • legend=, caption= and suptitle= on streaming plots, with legend_kwargs=, legend_colors=, caption_kwargs= and suptitle_kwargs=. Each is placed once, when the first stream_init samples are drawn.
  • Continuous hue= on animated markers, and half fillstyle= (with markerfacecoloralt=) on hue-colored markers.

Changed

  • Labels in animations are planned over all frames. labels= on an animated plot follow their points on every frame and move off each other, the legend, the colorbar, the title and the caption, without reversing direction from frame to frame.
  • Axis labels of an animated 3-D plot turn with the cube.

Fixed

  • The animated 3-D cube and its axis labels stay inside the canvas and off the legend on every frame (#297). The legend, titles, caption and cube are laid out once, for the whole rotation.
  • Crowded static labels= are moved off each other and off legends, colorbars, titles and captions (#297).
  • A named 2-D legend loc is placed inside the drawn frame.
  • A legend_colors= entry given as a (label, color) pair is drawn in its dataset's line style (width, dash, marker), so a thick line no longer gets a thin key.

Known limits

  • With about 30 crowded labels in an animation, one to three label pairs can still overlap on some frames.
  • Labels on streams are placed from the data seen so far; they cannot be dragged and do not take font=.
  • head_marker=, tail_linewidth=, trail_alpha= and hold= are not available on streaming plots.