Skip to content

Commit 1435c17

Browse files
authored
Clarify x0,y0 in image trace
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
1 parent 7427f14 commit 1435c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/image/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ module.exports = extendFlat({
8484
valType: 'any',
8585
dflt: 0,
8686
editType: 'calc+clearAxisTypes',
87-
description: 'Set the image\'s x position.'
87+
description: 'Set the image\'s x position. The bottom left corner of the image will be found at xmin=x0-dx/2'
8888
},
8989
y0: {
9090
valType: 'any',
9191
dflt: 0,
9292
editType: 'calc+clearAxisTypes',
93-
description: 'Set the image\'s y position.'
93+
description: 'Set the image\'s y position. The bottom left corner of the image will be found at y0-dy/2'
9494
},
9595
dx: {
9696
valType: 'number',

0 commit comments

Comments
 (0)