fix contour
This commit is contained in:
parent
1f2de587f1
commit
011ca73737
@ -356,9 +356,9 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o
|
|||||||
c = get_markercolor(series, i)
|
c = get_markercolor(series, i)
|
||||||
a = get_markeralpha(series, i)
|
a = get_markeralpha(series, i)
|
||||||
PGFPlotsX.push_preamble!(
|
PGFPlotsX.push_preamble!(
|
||||||
pgfx_plot.the_plot,
|
series[:plot_object].o.the_plot,
|
||||||
"""
|
"""
|
||||||
\\pgfdeclareplotmark{PlotsShape$(series_index)}{
|
\\pgfdeclareplotmark{PlotsShape$(series[:series_plotindex])}{
|
||||||
\\filldraw
|
\\filldraw
|
||||||
$path;
|
$path;
|
||||||
}
|
}
|
||||||
@ -467,11 +467,13 @@ function pgfx_add_series!(::Val{:heatmap}, axis, series_opt, series, series_func
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pgfx_add_series!(::Val{:contour}, axis, series_opt, series, series_func, opt)
|
function pgfx_add_series!(::Val{:contour}, axis, series_opt, series, series_func, opt)
|
||||||
|
push!(axis.options, "view" => "{0}{90}")
|
||||||
if isfilledcontour(series)
|
if isfilledcontour(series)
|
||||||
pgfx_add_series!(Val(:filledcontour), axis, series_opt, series, series_func, opt)
|
pgfx_add_series!(Val(:filledcontour), axis, series_opt, series, series_func, opt)
|
||||||
|
return nothing
|
||||||
end
|
end
|
||||||
push!(axis.options, "view" => "{0}{90}")
|
|
||||||
pgfx_add_series!(Val(:contour3d), axis, series_opt, series, series_func, opt)
|
pgfx_add_series!(Val(:contour3d), axis, series_opt, series, series_func, opt)
|
||||||
|
return nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
function pgfx_add_series!(::Val{:filledcontour}, axis, series_opt, series, series_func, opt)
|
function pgfx_add_series!(::Val{:filledcontour}, axis, series_opt, series, series_func, opt)
|
||||||
@ -482,9 +484,9 @@ function pgfx_add_series!(::Val{:filledcontour}, axis, series_opt, series, serie
|
|||||||
"shader" => "flat",
|
"shader" => "flat",
|
||||||
)
|
)
|
||||||
if opt[:levels] isa Number
|
if opt[:levels] isa Number
|
||||||
push!(segment_opt["contour filled"], "number" => opt[:levels])
|
push!(series_opt["contour filled"], "number" => opt[:levels])
|
||||||
elseif opt[:levels] isa AVec
|
elseif opt[:levels] isa AVec
|
||||||
push!(segment_opt["contour filled"], "levels" => opt[:levels])
|
push!(series_opt["contour filled"], "levels" => opt[:levels])
|
||||||
end
|
end
|
||||||
pgfx_add_series!(axis, series_opt, series, series_func, opt)
|
pgfx_add_series!(axis, series_opt, series, series_func, opt)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user