Skip to content

"Drawing out of range" with negative coordinates #16

Open

Description

@TheNitek

My plotter has (0, 0) at the center, so I want to be able to use negative X and Y values. So I set Left and Buttom to negative values. Unfortunately this gives my a "Drawing out of range" showing coordinates that are NOT.
I had a look at the code, but I couldn't find a obvious reason.

Activity

  1. TheNitek commented on Sep 3, 2019

    @TheNitek
    Author

    I found the problem:
    scale.offset = (plotter.xyMin[0],plotter.xyMin[1])
    breaks
    scale.scalePoint(point)
    for negative values.

  2. arpruss commented on Sep 4, 2019

    @arpruss
    Owner

    Does your svg file have negative coordinates?

  3. TheNitek commented on Sep 4, 2019

    @TheNitek
    Author

    Yes, because my plottable area is -40 to 40 in both directions

  4. arpruss commented on Sep 4, 2019

    @arpruss
    Owner

    Have you tried using positive coordinates and letting gcodeplot offset it to the negative area?

  5. TheNitek commented on Sep 4, 2019

    @TheNitek
    Author

    No I didn't yet, because that doesn't seem to be available within the UI. Also I find it to be more intuitive to have the same coordinates in Inkscape as on my plotter.

  6. arpruss commented on Sep 4, 2019

    @arpruss
    Owner

    That's I think the source of the problem: the plugin automatically adjust the drawing location so that the drawing's 0,0 corresponds to the minX,minY on the plotter.

  7. nylen commented on Oct 14, 2019

    @nylen

    That's I think the source of the problem: the plugin automatically adjust the drawing location so that the drawing's 0,0 corresponds to the minX,minY on the plotter.

    I think this is a bug. This program should be looking at the min and max coordinates of the SVG, not assuming they are 0,0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions