Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC: add a matrix style#502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eriknw merged 1 commit intopython-graphblas:mainfromalugowski:matrix
Sep 7, 2023
Merged

Conversation

@alugowski
Copy link
Contributor

Add amatrix style to the stylesheet that formats a table to look like a matrix.

Heavily based on the style used bymatrepr, but with some tweaks to make it work within the Sphinx/Bootstrap styles.

Usage

Add a

:class: matrix

directive to any table. This is stackable with other classes, for example:class: inline matrix includes both inline and matrix styles.

If the matrix has row indices, then also add:stub-columns: 1 to mark the leftmost column as a header. This way the leftmost column is styled as indices, but more importantly the matrix border will be in the correct place (i.e. the indices are outside the matrix).

Example:

..csv-table::A:class: inline matrix:header: ,0,1,2,3:stub-columns: 1

Effect

Screenshot 2023-09-06 at 22-45-10 Operations — python-graphblas 2023 7 0 0 gf14cbace dirty documentation

Becomes

Screenshot 2023-09-06 at 22-44-18 Operations — python-graphblas 2023 7 0 documentation

Closes#496

SultanOrazbayev and eriknw reacted with thumbs up emojieriknw reacted with heart emoji
@Transurgeon
Copy link
Contributor

Wow, it does look much nicer!
Also it would be nice to have a smaller dependency for the repr instead of pandas

@eriknw
Copy link
Member

Love it! This looks so good. Thanks@alugowski! ❤️

Also it would be nice to have a smaller dependency for the repr instead of pandas

Yup, I want to swtich to MatRepr as suggested in#494

@eriknweriknw merged commitad6c2da intopython-graphblas:mainSep 7, 2023
@alugowskialugowski deleted the matrix branchSeptember 7, 2023 20:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[doc] A matrix CSS style for matrices in docs

3 participants

@alugowski@Transurgeon@eriknw

[8]ページ先頭

©2009-2025 Movatter.jp