Algviz

Latest version: v0.3.1

Safety actively analyzes 621920 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.3.1

+ **New interfaces**:
+ [Vector.marks](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.vector.Vector.marks): emphasize one or more cell(s) in the Vector by mark it’s background color.
+ [Table.marks](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.table.Table.marks): emphasize one cell in the table by mark it’s background color.
+ [Graph.markNodes](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.svg_graph.SvgGraph.markNodes): emphasize some nodes by mark it’s background color.
+ [Graph.markEdges](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.svg_graph.SvgGraph.markEdges): emphasize some edges by mark it’s stoke color.
+ [setUpRandomSeed](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.setUpRandomSeed): set up the random seed when program startup or manually.
+ [Visualizer.removeCursors](https://algviz.readthedocs.io/en/0.3.1/api.html#algviz.visual.Visualizer.removeCursors): remove some cursor objects from viewport.
+ **New feature**:
+ Support multi-line text in vector, table, linked list, tree and graph.

![multi_line_text_example](https://cdn.jsdelivr.net/gh/zjl9959/algvizmain/docs/images/multi_line_text_example.svg)

+ Auto adjust the strip width in layouter.
+ **Fixed bugs**:
+ Fix [issue9](https://github.com/zjl9959/algviz/issues/9): Two svgs in one page will impact each other.
+ Fix [issue12](https://github.com/zjl9959/algviz/issues/12): Adjust font family, choose a fixed width font.
+ Fix [issue13](https://github.com/zjl9959/algviz/issues/13) and [issue14](https://github.com/zjl9959/algviz/issues/14) 'Digraph' object has no attribute 'repr_svg' when display a graph like object.
+ Fix display error when remove the same cursor multipy times.

0.3.0

+ Support to layout different display objects and assemble the animation sequences. To use this feature, you need to do these things:

1. The layout engine is platform specific, please make sure your OS is `Windows` or `Linux` and your platform is `amd64/x86_64` architecture.
2. Add the `layout=True` parameter when creating the [`Visualizer`](https://algviz.readthedocs.io/en/0.3.0/api.html#algviz.visual.Visualizer) object (the default value of `layout` is `False` for compatibility).
3. Add the [`Visualizer.layout`](https://algviz.readthedocs.io/en/0.3.0/api.html#algviz.visual.Visualizer.layout) function in your code where you want to assemble the animation sequences (usually at the end of the code path).

<img src="https://raw.githubusercontent.com/zjl9959/algviz/main/docs/animation_images/layout_example.gif" alt="layout_example.gif" width=400px/>

+ **Fix bug**: [Histogram vector zero height cell text size error](https://github.com/zjl9959/algviz/issues/8).

0.2.3

+ Adaptation to recent versions of the ipython library (8.0.0 ~ 8.12.0).
+ **New feature**: Added the [`generateRandomGraph`](https://algviz.readthedocs.io/en/0.2.3/api.html#algviz.graph.generateRandomGraph) interface, related [issue7](https://github.com/zjl9959/algviz/issues/7).
+ **Fix bug**: [Access table with cursor throw exception when "show_index=False"](https://github.com/zjl9959/algviz/issues/5)

0.2.2

+ Add a new class [Map](https://algviz.readthedocs.io/en/0.2.2/api.html#algviz.map.Map) which can be used like the Python `dict` builtin.

![map_class_example](https://cdn.jsdelivr.net/gh/zjl9959/algvizmain/docs/animation_images/map_class_example.svg)

+ Fix bugs: `table.reshape` error, [algviz.parseBinaryTree issue](https://github.com/zjl9959/algviz/issues/4).

0.2.1

Change log

+ Layout and display optimizations for [RecursiveTree](https://algviz.readthedocs.io/en/0.2.1/api.html#algviz.tree.RecursiveTree) and undirected graph.
+ Fix some typos and small mistakes.

0.2.0

Change log

+ **New feature**: add animation effect for text labels in Vector, Table and Graph nodes.

![vector_text_animation](https://cdn.jsdelivr.net/gh/zjl9959/algvizmain/docs/animation_images/vector_text_animation.svg)

+ **New interfaces**: [Vector.removeMarks](https://algviz.readthedocs.io/en/0.2.0/api.html#algviz.vector.Vector.removeMarks), [Table.removeMarks](https://algviz.readthedocs.io/en/0.2.0/api.html#algviz.table.Table.removeMarks), [SvgGraph.removeMarks](https://algviz.readthedocs.io/en/0.2.0/api.html#algviz.svg_graph.SvgGraph.removeMarks) can remove multiple color marks in the display object.
+ **Change interface**: [Table.mark](https://algviz.readthedocs.io/en/0.2.0/api.html#algviz.table.Table.mark) adds two parameters `r2` and `c2` to support marking multiple elements in the given rectangle area.
+ **Fixed bugs**:
+ Unit tests failed for Logger.
+ Display area is clipped in some Logger object.
+ Refresh error when calling [Logger.clear](https://algviz.readthedocs.io/en/0.2.0/api.html#algviz.logger.Logger.clear).

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.