vector of seriestypes fix; pycall changed strings to symbols
This commit is contained in:
parent
4ea787743e
commit
63f18dd26a
@ -807,7 +807,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
|
|
||||||
# TODO: this should probably be handled generically
|
# TODO: this should probably be handled generically
|
||||||
# expand extrema... handle is a QuadMesh object
|
# expand extrema... handle is a QuadMesh object
|
||||||
for path in handle[:properties]()["paths"]
|
for path in handle[:properties]()[:paths]
|
||||||
verts = path[:vertices]
|
verts = path[:vertices]
|
||||||
xmin, ymin = minimum(verts, 1)
|
xmin, ymin = minimum(verts, 1)
|
||||||
xmax, ymax = maximum(verts, 1)
|
xmax, ymax = maximum(verts, 1)
|
||||||
@ -1278,12 +1278,12 @@ const _pyplot_mimeformats = Dict(
|
|||||||
for (mime, fmt) in _pyplot_mimeformats
|
for (mime, fmt) in _pyplot_mimeformats
|
||||||
@eval function _writemime(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PyPlotBackend})
|
@eval function _writemime(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PyPlotBackend})
|
||||||
fig = plt.o
|
fig = plt.o
|
||||||
fig.o["canvas"][:print_figure](
|
fig.o[:canvas][:print_figure](
|
||||||
io,
|
io,
|
||||||
format=$fmt,
|
format=$fmt,
|
||||||
# bbox_inches = "tight",
|
# bbox_inches = "tight",
|
||||||
# figsize = map(px2inch, plt[:size]),
|
# figsize = map(px2inch, plt[:size]),
|
||||||
facecolor = fig.o["get_facecolor"](),
|
facecolor = fig.o[:get_facecolor](),
|
||||||
edgecolor = "none",
|
edgecolor = "none",
|
||||||
dpi = plt[:dpi]
|
dpi = plt[:dpi]
|
||||||
)
|
)
|
||||||
|
|||||||
@ -271,6 +271,7 @@ function _plot!(plt::Plot, d::KW, args...)
|
|||||||
else
|
else
|
||||||
sts = get(d, :seriestype, :path)
|
sts = get(d, :seriestype, :path)
|
||||||
if typeof(sts) <: AbstractArray
|
if typeof(sts) <: AbstractArray
|
||||||
|
delete!(d, :seriestype)
|
||||||
[begin
|
[begin
|
||||||
dc = copy(d)
|
dc = copy(d)
|
||||||
dc[:seriestype] = sts[r,:]
|
dc[:seriestype] = sts[r,:]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user