Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting: imperfect alignment of color and coordinate grids #1

Open
ikamensh opened this issue Apr 1, 2021 · 0 comments
Open

Plotting: imperfect alignment of color and coordinate grids #1

ikamensh opened this issue Apr 1, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ikamensh
Copy link
Owner

ikamensh commented Apr 1, 2021

For some reason the colored cells are slightly (and visibly) misaligned with the coordinate grid.

Reproducible with:

import numpy as np
from matplotlib import pyplot as plt
from arc.plot import plot_grid


grid = np.zeros([4,4], dtype=np.uint8)

for i in range(4):
    grid[i,i] = 3

plot_grid(grid)
plt.show()
@ikamensh ikamensh added the help wanted Extra attention is needed label Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant