← 输入框|github.com|刷新
Skip to content

arrow command broken #141

Closed
Closed

Description

@wkerzendorf

arrow(3000, 5e-15, 0, .5e-15)
ylim(0,1e-14)
xlim(2000, 4000)

should print a line from 3000, 5e-15 to 3000 5.5e-15, but it plots a line that goes much higher that 1e-14.

Cheers
Wolfgang

Activity

  1. leejjoon commented on Jul 10, 2011

    @leejjoon
    Contributor

    While this is not apparent in the documentation of the "arrow" command, it is implicitly assumed that dx, dy is the length of the arrow "without the head", and the length of the head is 0.0015 by default. This is why your result seems wrong.

    You may try to fix this with by setting the head_length explicitly.

    arrow(3000, 5e-15, 0, 1e-15, head_length=5.e-16, width=100)

    However, remember that "arrow" command draws the arrow in the data coordinate, and I recommend you to use command like "annotate" instead.

    I consider this is a bug in the documentation and will commit fix soon.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions