-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for text annotation on an existing plot (#171)
* Add support for text annotation on an existing plot * Change default text color from auto to normal * Add halign = (:left, :center, :right) and valign = (:top, :center, :bottom) to align the text around the specified point. Use :center by default. * Fix bug when specified point falls outside of the plot limits * Rename annotate! -> label! * Add unit test * Fix halign bug (unit offset) * Add `annotate!` support for :AsciiCanvas, :DotCanvas, :BlockCanvas * Grow lookup tables ascii -> unicode subset * Rework char position computation * Add deprecation warning (`annotate!` -> `label!`) * Cleanup / indent * Add :hcenter and :vcenter aliases for Plots * Move deprecated functions tests to test/tst_deprecated.jl Co-authored-by: t-bltg <[email protected]>
- Loading branch information
Showing
36 changed files
with
649 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/Manifest.toml | ||
/test/Manifest.toml | ||
.DS_Store | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ export | |
xlabel, xlabel!, | ||
ylabel, ylabel!, | ||
zlabel, zlabel!, | ||
label!, | ||
annotate!, | ||
|
||
barplot, barplot!, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.