You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ocharles: in that paste, see the "traceShowM" lines where I show the bounding box of my diagram, and then apparently map the (0,0) pixel of the rendered diagram to something completely outside that bounding box
ocharles: I see this in the rasterific backend: "adjustDia c opts d = adjustDia2D sizeSpec c opts (d # reflectY)" I wonder if that has something to do with it
ocharles: As a work around, I'm currently flipping the y axis on the result of calls to papply atm and then things do line up correctly
byorgey: ocharles: yeah, it probably has to do with the reflectY in the backend, which is done since many backends have the positive y-axis pointing downwards, but diagrams has it pointing upwards
The text was updated successfully, but these errors were encountered:
@ocharles I'm trying to figure out whether this is a bug in diagrams or in your intuition. Do you have reason to believe that the origin should be included in the envelope of the diagram you are rendering?
Also, note that the flipped y is expected: pixel coordinates have the positive y axis pointing downwards, but diagrams coordinates have it pointing upwards.
See this IRC transcript:
ocharles: Can anyone make any sense of this? https://gist.github.com/ocharles/2c36ebc4eadae5602479ead97cb9917e I'm translating pixel coordinates back into diagram space, but ending up with a flipped y
ocharles: in that paste, see the "traceShowM" lines where I show the bounding box of my diagram, and then apparently map the (0,0) pixel of the rendered diagram to something completely outside that bounding box
ocharles: I see this in the rasterific backend: "adjustDia c opts d = adjustDia2D sizeSpec c opts (d # reflectY)" I wonder if that has something to do with it
ocharles: As a work around, I'm currently flipping the y axis on the result of calls to papply atm and then things do line up correctly
byorgey: ocharles: yeah, it probably has to do with the reflectY in the backend, which is done since many backends have the positive y-axis pointing downwards, but diagrams has it pointing upwards
The text was updated successfully, but these errors were encountered: