-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from JuliaRobotics/test/4Q19/pdfexport
Cairo 0.7, 0.8 pdf export and Test
- Loading branch information
Showing
4 changed files
with
45 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# test basic plotting | ||
|
||
using Test | ||
using KernelDensityEstimate | ||
using KernelDensityEstimatePlotting | ||
using Colors | ||
|
||
@testset "Test basic plotting functions..." begin | ||
|
||
# check for errors on plotting code | ||
p = kde!(rand(100)); | ||
q = kde!(rand(100).+1.0); | ||
|
||
plotKDE([p],c=["red"]); | ||
plot(p); | ||
|
||
plot([p;q], c=["red";"green"]) | ||
|
||
p2 = kde!(rand(3,100)); | ||
q2 = kde!(rand(3,100).+1.0); | ||
|
||
plot(p2); | ||
plot([p2;q2]); | ||
plot([p2;q2];c=["red";"green"],levels=3); | ||
|
||
end |
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,15 @@ | ||
# tests Cairo and Pango | ||
|
||
|
||
using Test | ||
using Gadfly | ||
using Cairo | ||
|
||
|
||
@testset "Test exporting plot figure to PDF" begin | ||
|
||
pl = Gadfly.plot(y=randn(10), Geom.line) | ||
|
||
pl |> PDF("/tmp/test.pdf") | ||
|
||
end |