next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Visualize :: Visualize

Visualize -- A package to help visualize algebraic objects in the browser using javascript


Using JavaScript, this package creates interactive visualizations of a variety of objects in a modern browser. While viewing the object, the user has the ability to manipulate and run various tests. Once finished, the user can export the finished result back to the Macaulay2 session.

Javascript Packages Used

Built on the shoulders of giants, this package utilizes a variety of existing open-source javascript packages.


The following people have generously contributed code or worked on our code at various Macaulay2 workshops. In particular we are thankful to Dan Grayson and Mike Stillman for their help in creating communication between Macaulay2 and the browser.

Interactive Examples

The following links are interactive examples without the communication between Macaulay2 and the browser. The editing, manipulation, and TikZ should work. Depending on the browser, some features may require you to open the links in a new tab.

Methods and Workflow



This documentation describes version 1.5 of Visualize.

Source code

The source code from which this documentation is derived is in the file Visualize.m2. The auxiliary files accompanying it are in the directory Visualize/.


  • Functions and commands
  • Symbols
    • FixExtremeElements -- an option to fix extreme elements of a poset
    • VisPath -- an option to define a path to save visualizations
    • VisTemplate -- an option defining the template path
    • Warning -- an option to squelch warnings