finished name change to Plots.jl
This commit is contained in:
parent
fff099ff84
commit
f222dd8458
@ -11,4 +11,4 @@ notifications:
|
|||||||
# uncomment the following lines to override the default test script
|
# uncomment the following lines to override the default test script
|
||||||
#script:
|
#script:
|
||||||
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
||||||
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Plot"); Pkg.test("Plot"; coverage=true)'
|
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Plots"); Pkg.test("Plots"; coverage=true)'
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
The Plot.jl package is licensed under the MIT "Expat" License:
|
The Plots.jl package is licensed under the MIT "Expat" License:
|
||||||
|
|
||||||
> Copyright (c) 2015: Thomas Breloff.
|
> Copyright (c) 2015: Thomas Breloff.
|
||||||
>
|
>
|
||||||
|
|||||||
18
README.md
18
README.md
@ -1,6 +1,6 @@
|
|||||||
# Plot
|
# Plots
|
||||||
|
|
||||||
[](https://travis-ci.org/tbreloff/Plot.jl)
|
[](https://travis-ci.org/tbreloff/Plots.jl)
|
||||||
|
|
||||||
Plotting interface and wrapper for several plotting packages.
|
Plotting interface and wrapper for several plotting packages.
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ Plotting interface and wrapper for several plotting packages.
|
|||||||
First, clone the package, and get any plotting packages you need:
|
First, clone the package, and get any plotting packages you need:
|
||||||
|
|
||||||
```
|
```
|
||||||
Pkg.clone("https://github.com/JuliaPlot/Plot.jl.git")
|
Pkg.clone("https://github.com/JuliaPlot/Plots.jl.git")
|
||||||
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git") # requires pyqt and pyqwt
|
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git") # requires pyqt and pyqwt
|
||||||
Pkg.add("Gadfly") # might also need to Pkg.checkout("Gadfly") and maybe Colors/Compose... I had trouble with it
|
Pkg.add("Gadfly") # might also need to Pkg.checkout("Gadfly") and maybe Colors/Compose... I had trouble with it
|
||||||
```
|
```
|
||||||
@ -17,7 +17,7 @@ Pkg.add("Gadfly") # might also need to Pkg.checkout("Gadfly") and maybe Colors/
|
|||||||
Now load it in:
|
Now load it in:
|
||||||
|
|
||||||
```
|
```
|
||||||
using Plot
|
using Plots
|
||||||
```
|
```
|
||||||
|
|
||||||
Do a plot in Qwt, then save a png:
|
Do a plot in Qwt, then save a png:
|
||||||
@ -25,7 +25,7 @@ Do a plot in Qwt, then save a png:
|
|||||||
```
|
```
|
||||||
plotter(:Qwt)
|
plotter(:Qwt)
|
||||||
plot(1:10)
|
plot(1:10)
|
||||||
savepng(ans, Plot.IMG_DIR * "qwt1.png")
|
savepng(ans, Plots.IMG_DIR * "qwt1.png")
|
||||||
```
|
```
|
||||||
|
|
||||||
which saves:
|
which saves:
|
||||||
@ -38,7 +38,7 @@ Do a plot in Gadfly, then save a png:
|
|||||||
```
|
```
|
||||||
plotter(:Gadfly)
|
plotter(:Gadfly)
|
||||||
plot(1:10)
|
plot(1:10)
|
||||||
savepng(ans, Plot.IMG_DIR * "gadfly1.png", 6Gadfly.inch, 4Gadfly.inch)
|
savepng(ans, Plots.IMG_DIR * "gadfly1.png", 6Gadfly.inch, 4Gadfly.inch)
|
||||||
```
|
```
|
||||||
|
|
||||||
which saves:
|
which saves:
|
||||||
@ -48,15 +48,15 @@ which saves:
|
|||||||
|
|
||||||
Note that you do not need all underlying packages to use this. I use Requires.jl to
|
Note that you do not need all underlying packages to use this. I use Requires.jl to
|
||||||
perform lazy loading of the modules, so there's no initialization until you call `plotter()`.
|
perform lazy loading of the modules, so there's no initialization until you call `plotter()`.
|
||||||
This has an added benefit that you can call `using Plot` and it should return quickly...
|
This has an added benefit that you can call `using Plots` and it should return quickly...
|
||||||
no more waiting for a plotting package to load when you don't even use it. :)
|
no more waiting for a plotting package to load when you don't even use it. :)
|
||||||
|
|
||||||
```
|
```
|
||||||
julia> tic(); using Plot; toc();
|
julia> tic(); using Plots; toc();
|
||||||
elapsed time: 0.356158445 seconds
|
elapsed time: 0.356158445 seconds
|
||||||
|
|
||||||
julia> tic(); using Gadfly; toc();
|
julia> tic(); using Gadfly; toc();
|
||||||
WARNING: using Gadfly.Plot in module Main conflicts with an existing identifier.
|
WARNING: using Gadfly.Plots in module Main conflicts with an existing identifier.
|
||||||
elapsed time: 3.1334697 seconds
|
elapsed time: 3.1334697 seconds
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ build_script:
|
|||||||
# Need to convert from shallow to complete for Pkg.clone to work
|
# Need to convert from shallow to complete for Pkg.clone to work
|
||||||
- IF EXIST .git\shallow (git fetch --unshallow)
|
- IF EXIST .git\shallow (git fetch --unshallow)
|
||||||
- C:\projects\julia\bin\julia -e "versioninfo();
|
- C:\projects\julia\bin\julia -e "versioninfo();
|
||||||
Pkg.clone(pwd(), \"Plot\"); Pkg.build(\"Plot\")"
|
Pkg.clone(pwd(), \"Plots\"); Pkg.build(\"Plots\")"
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"Plot\")"
|
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"Plots\")"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
module Plot
|
module Plots
|
||||||
|
|
||||||
using Requires
|
using Requires
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ currentPlot!(plot) = (CURRENT_PLOT.nullableplot = Nullable(plot))
|
|||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
const IMG_DIR = "$(ENV["HOME"])/.julia/v0.4/Plot/img/"
|
const IMG_DIR = "$(ENV["HOME"])/.julia/v0.4/Plots/img/"
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using Plot
|
using Plots
|
||||||
using Base.Test
|
using Base.Test
|
||||||
|
|
||||||
# write your own tests here
|
# write your own tests here
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user