Skip to content

[Documentation] Clarify x0,y0 in image trace #6501

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

Merged
merged 4 commits into from
May 12, 2023
Merged

Conversation

zeehio
Copy link
Contributor

@zeehio zeehio commented Feb 27, 2023

The image trace defines x0 and y0 properties as "Set the image's x position."

In my opinion that's not very precise, because it is not clear if it refers to some corner or the center of the image.

From my experimentation, it refers to the "center of the bottom left pixel".

Therefore I suggest to use:

Set the image\'s x position. The bottom left corner of the image will be found at xmin=x0-dx/2'

Please review this suggestion, since I am not sure if this holds true for any possible advanced axis transformations (I'm a plotly beginner). In my opinion it gives a more precise definition, at least for basic plots.

Thanks for your time and work

Clarify in the documentation what do x0 and y0 mean.

x0 is the x-coordinate of the center of the bottom left pixel in the image
y0 is the y-coordinate of the center of the bottom left pixel in the image
@zeehio zeehio changed the title Clarify x0,y0 in image trace [Documentation] Clarify x0,y0 in image trace Feb 27, 2023
@archmoj archmoj added community community contribution type: documentation labels May 12, 2023
@archmoj archmoj merged commit ec13ee1 into plotly:master May 12, 2023
@zeehio zeehio deleted the patch-1 branch May 17, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants