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

Expand docs on panzoom rect setter #2317

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Expand docs on panzoom rect setter #2317

merged 2 commits into from
Apr 7, 2022

Conversation

dstansby
Copy link
Contributor

@dstansby dstansby commented Apr 1, 2022

This adds a reference to the ways the view rectangle can be specified, clearing up potential confusion. Fixes #2316.

Copy link
Member

@djhoese djhoese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this and cleaning up out documentation! I have a small suggestion/request on reworking this to fit PEP8 conventions.

Comment on lines 135 to 137
"""The rectangular border of the ViewBox visible area, expressed in
the coordinate system of the scene.
the coordinate system of the scene. See `~vispy.geometry.rect.Rect`
for different ways this can be specified.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need a :class: at the beginning of your Rect reference. Additionally, we should clean up this docstring to meet flake8 standards (current disabled on CI I think). What about...

"""Set the rectangular border of the ViewBox visible area.

This is expressed in the coordinate system of the scene. See :class:`~vispy.geometry.rect.Rect`
for different ways this can be specified.

Thoughts?

@dstansby
Copy link
Contributor Author

dstansby commented Apr 7, 2022

👍 I've updated as requested. I was lazy and did it through the GH UI though, so hopefully everything is fine? If not I can fork and do it properley locally.

@djhoese
Copy link
Member

djhoese commented Apr 7, 2022

Looks good to me. Thanks!

image

@djhoese djhoese merged commit 49b0c49 into vispy:main Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting camera rect on a PanZoomCamera not working as expected
2 participants