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

Rotated rectangles do not align #115

Open
lschwetlick opened this issue Nov 28, 2023 · 0 comments
Open

Rotated rectangles do not align #115

lschwetlick opened this issue Nov 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lschwetlick
Copy link

lschwetlick commented Nov 28, 2023

Context

I wanted to get two rotated rectangles of different sizes, centered at the same point.

Minimal Reproducible Example

stim = shapes.rectangle(visual_size=(15,15), ppd=10, rectangle_size=(4,4), rectangle_position=(3,3), rotation=30)

stim_i = shapes.rectangle(visual_size=(15,15), ppd=10, rectangle_size=(3,3), rectangle_position=(3,3), rotation=30)

new_img = stim["img"] - stim_i["img"]

plt.imshow(new_img)

Expected behavior

I would expect the rectangles to line up either at the corners or the center.

Observed behavior

Screenshot 2023-11-28 at 09 21 00
@lschwetlick lschwetlick added the bug Something isn't working label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant