-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
plot: Plot Annotations #336
Conversation
95ab379
to
6f8cab9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but an example would be nice
/// - resize (bool): If true, the plots axes get adjusted to contain the annotation | ||
/// - padding (none,number,dictionary): Annotation padding that is used for axis | ||
/// adjustment | ||
/// - background (bool): If true, the annotation is drawn behind all plots, in the background. | ||
/// If false, the annotation is drawn above all plots. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could these be put into a style?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not really make sense imho., as all three depend on the plot/data and are in plot units (padding).
cfb1839
to
a8b8255
Compare
a8b8255
to
91709eb
Compare
91709eb
to
45b1a87
Compare
Implements cetz-package/cetz-plot#4 partly (in plot coordinates).
This PR adds
add-annotation
to allow drawing in plots. The plot also gets resized to the drawing if it exceeds the axis bounds.In addition, it fixes
place-anchors
, which raised an error because elements are not dictionaries anymore.