Skip to content

Add custom bounding box for matrix_plot #27895

@mwageringel

Description

@mwageringel

This ticket implements new options xrange/yrange for matrix_plot which allow to specify the rectangle in which to draw a matrix.

For example the following can be used to draw the matrix in [0,1]×[0,1] instead of the default [-0.5,4.5]×[-0.5,4.5].

sage: matrix_plot(identity_matrix(5), xrange=(0, 1), yrange=(0, 1))

Note that there is a very old ticket #2189 attempting to implement the same, among other things, but it is too old to merge.

Depends on #27891

Component: graphics

Author: Markus Wageringel

Branch/Commit: 0dc23eb

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/27895

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions