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
julia> Pkg.add("Winston") | |
INFO: Initializing package repository /Users/jomo/.julia/v0.3 | |
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl | |
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git | |
INFO: Cloning cache of Cairo from git://github.com/JuliaLang/Cairo.jl.git | |
INFO: Cloning cache of Color from git://github.com/JuliaLang/Color.jl.git | |
INFO: Cloning cache of Homebrew from git://github.com/JuliaLang/Homebrew.jl.git | |
INFO: Cloning cache of IniFile from git://github.com/JuliaLang/IniFile.jl.git | |
INFO: Cloning cache of Tk from git://github.com/JuliaLang/Tk.jl.git | |
INFO: Cloning cache of URIParser from git://github.com/loladiro/URIParser.jl.git |
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
#colorbar | |
function colorbar(dmin, dmax; orientation="horizontal", colormap=_default_colormap, kvs...) | |
if orientation == "vertical" | |
p=FramedPlot(aspect_ratio=10.0) | |
setattr(p.x, draw_ticks=false) | |
setattr(p.y1, draw_ticks=false) | |
setattr(p.x1, draw_ticklabels=false) | |
setattr(p.y1, draw_ticklabels=false) | |
setattr(p.y2, draw_ticklabels=true) |
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
## DataFrames | |
# using Winston, RDatasets | |
# iris = data("datasets", "iris") | |
# clean_colnames!(iris) | |
# ## simple line graph | |
# plot(:Sepal_Length, :Sepal_Width, iris) | |
# ## scatterplot |
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
output_surface = Winston.config_value("default","output_surface") | |
output_surface = symbol(lowercase(get(ENV, "WINSTON_OUTPUT", output_surface))) | |
import Cairo | |
using Color | |
export file, | |
imagesc, | |
loglog, | |
oplot, |