added normalize kw, and added to pyplot
This commit is contained in:
parent
50fa013801
commit
44079a7bf7
@ -154,6 +154,7 @@ _seriesDefaults[:xerror] = nothing
|
|||||||
_seriesDefaults[:yerror] = nothing
|
_seriesDefaults[:yerror] = nothing
|
||||||
_seriesDefaults[:ribbon] = nothing
|
_seriesDefaults[:ribbon] = nothing
|
||||||
_seriesDefaults[:quiver] = nothing
|
_seriesDefaults[:quiver] = nothing
|
||||||
|
_seriesDefaults[:normalize] = false # do we want a normalized histogram?
|
||||||
|
|
||||||
|
|
||||||
const _plotDefaults = KW()
|
const _plotDefaults = KW()
|
||||||
@ -356,6 +357,9 @@ end
|
|||||||
:velocity => :quiver,
|
:velocity => :quiver,
|
||||||
:quiver2d => :quiver,
|
:quiver2d => :quiver,
|
||||||
:gradient => :quiver,
|
:gradient => :quiver,
|
||||||
|
:norm => :normalize,
|
||||||
|
:normed => :normalize,
|
||||||
|
:normalized => :normalize,
|
||||||
)
|
)
|
||||||
|
|
||||||
# add all pluralized forms to the _keyAliases dict
|
# add all pluralized forms to the _keyAliases dict
|
||||||
|
|||||||
@ -449,7 +449,7 @@ function _add_series(pkg::PyPlotBackend, plt::Plot, d::KW)
|
|||||||
edgecolor = pylinecolor(d),
|
edgecolor = pylinecolor(d),
|
||||||
linewidth = d[:linewidth],
|
linewidth = d[:linewidth],
|
||||||
bins = d[:nbins],
|
bins = d[:nbins],
|
||||||
normed = (lt == :density),
|
normed = d[:normalize],
|
||||||
orientation = (isvertical(d) ? "vertical" : "horizontal"),
|
orientation = (isvertical(d) ? "vertical" : "horizontal"),
|
||||||
histtype = (d[:bar_position] == :stack ? "barstacked" : "bar")
|
histtype = (d[:bar_position] == :stack ? "barstacked" : "bar")
|
||||||
)[1]
|
)[1]
|
||||||
|
|||||||
@ -101,12 +101,13 @@ supportedArgs(::PyPlotBackend) = [
|
|||||||
:orientation,
|
:orientation,
|
||||||
:overwrite_figure,
|
:overwrite_figure,
|
||||||
:polar,
|
:polar,
|
||||||
|
:normalize,
|
||||||
]
|
]
|
||||||
supportedAxes(::PyPlotBackend) = _allAxes
|
supportedAxes(::PyPlotBackend) = _allAxes
|
||||||
supportedTypes(::PyPlotBackend) = [
|
supportedTypes(::PyPlotBackend) = [
|
||||||
:none, :line, :path, :steppre, :steppost, :shape,
|
:none, :line, :path, :steppre, :steppost, :shape,
|
||||||
:scatter, :hist2d, :hexbin, :hist, :density,
|
:scatter, :hist2d, :hexbin, :hist, :density,
|
||||||
:bar, :box, :violin, :quiver,
|
:bar, :sticks, :box, :violin, :quiver,
|
||||||
:hline, :vline, :heatmap,
|
:hline, :vline, :heatmap,
|
||||||
:contour, :path3d, :scatter3d, :surface, :wireframe
|
:contour, :path3d, :scatter3d, :surface, :wireframe
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user