working on pgfplots

This commit is contained in:
Thomas Breloff 2016-05-26 15:02:04 -04:00
parent a388ec71e3
commit ed25e554e1

View File

@ -1,69 +1,51 @@
# https://github.com/sisl/PGFPlots.jl # https://github.com/sisl/PGFPlots.jl
supportedArgs(::PGFPlotsBackend) = [ supportedArgs(::PGFPlotsBackend) = [
# :annotation, # :annotations,
:aspect_ratio, :background_color, :foreground_color,
# :axis, :color_palette,
:background_color, # :background_color_legend,
# :color_palette, :background_color_inside,
# :fillrange, # :background_color_outside,
:fillcolor, # :foreground_color_legend, :foreground_color_grid, :foreground_color_axis,
:fillalpha, # :foreground_color_text, :foreground_color_border,
# :foreground_color, :group,
# :group,
:label, :label,
# :layout,
:legend,
:seriescolor, :seriesalpha,
:linecolor,
:linestyle,
:seriestype, :seriestype,
:linewidth, :seriescolor, :seriesalpha,
:linealpha, :linecolor, :linestyle, :linewidth, :linealpha,
:markershape, :markershape, :markercolor, :markersize, :markeralpha,
:markercolor, :markerstrokewidth, :markerstrokecolor, :markerstrokealpha,
:markersize, :fillrange, :fillcolor, :fillalpha,
:markeralpha, :bins,
:markerstrokewidth, # :bar_width, :bar_edges,
:markerstrokecolor, # :n, :nc, :nr,
:markerstrokestyle, :layout,
# :n,
# :bins,
# :nc,
# :nr,
# :pos,
# :smooth, # :smooth,
# :show,
:size,
:title, :title,
# :window_title, # :window_title,
:x, :show, :size,
:xguide, :x, :xguide, :xlims, :xticks, :xscale, :xflip, :xrotation,
:xlims, :y, :yguide, :ylims, :yticks, :yscale, :yflip, :yrotation,
# :xticks, :z, :zguide, :zlims, :zticks, :zscale, :zflip, :zrotation,
:y, :tickfont, :guidefont, :legendfont,
:yguide, :grid, :legend,
:ylims, # :colorbar,
# :yrightlabel, # :marker_z, :levels,
# :yticks, # :xerror, :yerror,
:xscale, # :ribbon, :quiver, :arrow,
:yscale, # :orientation,
:xflip, # :overwrite_figure,
:yflip, # :polar,
:z, # :normalize, :weights, :contours,
:zscale, :aspect_ratio,
# :tickfont, # :match_dimensions,
# :guidefont,
# :legendfont,
:grid,
# :surface
# :levels,
] ]
supportedAxes(::PGFPlotsBackend) = [:auto, :left] supportedAxes(::PGFPlotsBackend) = [:auto, :left]
supportedTypes(::PGFPlotsBackend) = [:path, :path3d, :scatter, :line, :steppre, :stepmid, :steppost, :hist, :bar, :hist2d, :sticks, :ysticks, :xsticks, :contour] # :hexbin, :hline, :vline,] supportedTypes(::PGFPlotsBackend) = [:path, :path3d, :scatter, :steppre, :stepmid, :steppost, :hist2d, :ysticks, :xsticks, :contour]
supportedStyles(::PGFPlotsBackend) = [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot] supportedStyles(::PGFPlotsBackend) = [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot]
supportedMarkers(::PGFPlotsBackend) = [:none, :auto, :ellipse, :rect, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star5, :pentagon] #vcat(_allMarkers, Shape) supportedMarkers(::PGFPlotsBackend) = [:none, :auto, :ellipse, :rect, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star5, :pentagon] #vcat(_allMarkers, Shape)
supportedScales(::PGFPlotsBackend) = [:identity, :log, :ln, :log2, :log10] # :asinh, :sqrt] supportedScales(::PGFPlotsBackend) = [:identity, :ln, :log2, :log10] # :asinh, :sqrt]
subplotSupported(::PGFPlotsBackend) = false subplotSupported(::PGFPlotsBackend) = false
@ -263,6 +245,7 @@ function pgf_series(sp::Subplot, series::Series)
push!(style, pgf_linestyle(d)) push!(style, pgf_linestyle(d))
push!(style, pgf_marker(d)) push!(style, pgf_marker(d))
if d[:fillrange] != nothing if d[:fillrange] != nothing
push!(style, pgf_fillstyle(d)) push!(style, pgf_fillstyle(d))
end end