add GLVisualize backend
This commit is contained in:
parent
8a40ac8991
commit
475eb8f263
@ -23,7 +23,7 @@ function Axis(sp::Subplot, letter::Symbol, args...; kw...)
|
||||
lk = Symbol(letter, k)
|
||||
lv = _axis_defaults_byletter[lk]
|
||||
d[k] = (lv == :match ? v : lv)
|
||||
end
|
||||
end
|
||||
|
||||
# merge!(d, _axis_defaults)
|
||||
d[:discrete_values] = []
|
||||
@ -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
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user