tremove PyPlot requirement and update documentation accordingly - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2f2716c0592b904d8af0f66c2b8b389b3d276f46
(DIR) parent b1eae73228ab53784fd53f97f9c76688902540aa
(HTM) Author: Anders Damsgaard <andersd@riseup.net>
Date: Thu, 9 Nov 2017 07:21:50 -0600
remove PyPlot requirement and update documentation accordingly
Diffstat:
M .travis.yml | 2 +-
M REQUIRE | 1 -
M docs/src/man/getting_started.md | 3 ++-
M examples/sedimentation.jl | 2 +-
M examples/shear.jl | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/.travis.yml b/.travis.yml
t@@ -27,7 +27,7 @@ before_script:
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- - julia -e 'Pkg.clone(pwd()); Pkg.build("Granular"); ENV["PYTHON"]=""; Pkg.build("PyCall"); Pkg.build("PyPlot")'; julia -e 'Pkg.test("Granular"; coverage=true)';
+ - julia -e 'Pkg.clone(pwd()); Pkg.build("Granular"); Pkg.test("Granular"; coverage=true)';
deploy:
- provider: script
(DIR) diff --git a/REQUIRE b/REQUIRE
t@@ -2,7 +2,6 @@ julia 0.6
WriteVTK
NetCDF
Documenter
-PyPlot
BinDeps 0.2.12-
Compat 0.9.1
@osx Homebrew 0.0.4-
(DIR) diff --git a/docs/src/man/getting_started.md b/docs/src/man/getting_started.md
t@@ -301,7 +301,8 @@ julia> Granular.regularPacking!(sim, [7, 25], 0.02, 0.2)
```
Since we haven't explicitly set the grain sizes for this example, we can
-inspect the values by plotting a histogram of sizes:
+inspect the values by plotting a histogram of sizes (only works if the `PyPlot`
+package is installed with `Pkg.add("PyPlot")`:
```julia-repl
julia> Granular.plotGrainSizeDistribution(sim)
(DIR) diff --git a/examples/sedimentation.jl b/examples/sedimentation.jl
t@@ -9,7 +9,7 @@ sim = Granular.createSimulation(id="sedimentation")
Granular.regularPacking!(sim, [7, 25], 0.02, 0.2)
# Visualize the grain-size distribution
-Granular.plotGrainSizeDistribution(sim)
+#Granular.plotGrainSizeDistribution(sim)
# Create a grid for contact searching spanning the extent of the grains in the
# simulation
(DIR) diff --git a/examples/shear.jl b/examples/shear.jl
t@@ -36,7 +36,7 @@ Granular.setTotalTime!(sim, 30.)
Granular.setOutputFileInterval!(sim, .2)
# Visualize the grain-size distribution
-Granular.plotGrainSizeDistribution(sim)
+#Granular.plotGrainSizeDistribution(sim)
# Start the simulation
Granular.run!(sim)