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.""" doc"""Returns the current plotting package name."""
function plotter() function plotter()
if isnull(CURRENT_PACKAGE.pkg) if isnull(CURRENT_PACKAGE.pkg)
error("Must choose a plotter. Example: `plotter(:Qwt)`") error("Must choose a plotter. Example: `plotter!(:qwt)`")
end end
get(CURRENT_PACKAGE.pkg) get(CURRENT_PACKAGE.pkg)
end end
doc""" doc"""
Setup the plot environment. Setup the plot environment.
`plotter(:Qwt)` will load package Qwt.jl and map all subsequent plot commands to that package. `plotter!(:qwt)` will load package Qwt.jl and map all subsequent plot commands to that package.
Same for `plotter(:Gadfly)`, etc. Same for `plotter!(:gadfly)`, etc.
""" """
function plotter!(modname) function plotter!(modname)