working on org/docs/test

This commit is contained in:
Thomas Breloff 2015-09-02 19:13:08 -04:00
parent add53e4dbc
commit 0d72129819

View File

@ -21,15 +21,15 @@ const CURRENT_PACKAGE = CurrentPackage(Nullable{PlottingPackage}())
doc"""Returns the current plotting package name."""
function plotter()
if isnull(CURRENT_PACKAGE.pkg)
error("Must choose a plotter. Example: `plotter(:Qwt)`")
error("Must choose a plotter. Example: `plotter!(:qwt)`")
end
get(CURRENT_PACKAGE.pkg)
end
doc"""
Setup the plot environment.
`plotter(:Qwt)` will load package Qwt.jl and map all subsequent plot commands to that package.
Same for `plotter(:Gadfly)`, etc.
`plotter!(:qwt)` will load package Qwt.jl and map all subsequent plot commands to that package.
Same for `plotter!(:gadfly)`, etc.
"""
function plotter!(modname)