Repository navigation
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 hypertoolsPython 3.10 through 3.13. Extras are unchanged from 1.2.0.
Added
- Trails and chemtrails with marker formats (#299).
tail_duration=andchemtrails=Truenow 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=andtrail_alpha=style the trail;hold=keeps the last frame for a number of seconds;caption_kwargs=styles the caption;suptitle=andsuptitle_kwargs=add a title above the figure. labels=on streaming plots. A callablelabels(index, sample)or an iterable consumed in step with the samples. Labels are placed off each other as the stream grows, and are listed infig.stream_info['labels'].legend=,caption=andsuptitle=on streaming plots, withlegend_kwargs=,legend_colors=,caption_kwargs=andsuptitle_kwargs=. Each is placed once, when the firststream_initsamples are drawn.- Continuous
hue=on animated markers, and halffillstyle=(withmarkerfacecoloralt=) 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
locis 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=andhold=are not available on streaming plots.