Merge pull request #374 from SimonDanisch/dev

glvisualize backend
This commit is contained in:
Tom Breloff 2016-09-01 20:59:13 -04:00 committed by GitHub
commit 34135f8e6b
3 changed files with 1145 additions and 272 deletions

View File

@ -309,15 +309,13 @@ function expand_extrema!(sp::Subplot, d::KW)
# expand for bar_width
if d[:seriestype] == :bar
dsym = vert ? :x : :y
dsym = (!vert) ? :x : :y
data = d[dsym]
bw = d[:bar_width]
if bw == nothing
bw = d[:bar_width] = mean(diff(data))
end
# @show data bw
axis = sp.attr[Symbol(dsym, :axis)]
expand_extrema!(axis, maximum(data) + 0.5maximum(bw))
expand_extrema!(axis, minimum(data) - 0.5minimum(bw))
@ -489,4 +487,3 @@ function axis_drawing_info(sp::Subplot)
xticks, yticks, spine_segs, grid_segs
end

File diff suppressed because it is too large Load Diff

View File

@ -134,6 +134,7 @@ const _mimeformats = Dict(
const _best_html_output_type = KW(
:pyplot => :png,
:unicodeplots => :txt,
:glvisualize => :png
)
# a backup for html... passes to svg or png depending on the html_output_format arg