-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Wikipedia icon now works. SVGs are placed and scaled correctly. The only remaining question is coloring.
- Loading branch information
1 parent
9f3c981
commit bfad07e
Showing
6 changed files
with
144 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using MakieTeX, CairoMakie | ||
using Downloads | ||
using Rsvg, Cairo | ||
|
||
|
||
svg = SVGDocument(read(Base.download("https://raw.githubusercontent.com/file-icons/icons/master/svg/Go-Old.svg"), String)); | ||
bvsvg = SVGDocument(read(Base.download("https://upload.wikimedia.org/wikipedia/commons/6/6b/Bitmap_VS_SVG.svg"), String)); | ||
wsvg = SVGDocument(read(Base.download("https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg"), String)); | ||
|
||
|
||
|
||
csvg = CachedSVG(svg) | ||
cbvsvg = CachedSVG(bvsvg) | ||
cwsvg = CachedSVG(wsvg) | ||
|
||
f, a, p = scatter(Point2f(1); marker = svg, markersize = 60, axis = (; limits = (0,2,0,2))) | ||
p.color = :red | ||
p.strokecolor = :blue | ||
p.strokewidth = 2 | ||
f | ||
ys = rand(10) | ||
f, a, p1 = scatter(ys; marker = wsvg, markersize = 30) | ||
p2 = scatter!(ys; marker = Circle, markersize = 30) | ||
translate!(p2, 0,0,-1) | ||
f |