Removed 'private' keyword argument :scale
This commit is contained in:
parent
88b9d71bd7
commit
ea29af8d3d
@ -132,7 +132,12 @@ function gr_display(plt::Plot{GRPackage}, clear=true, update=true,
|
|||||||
end
|
end
|
||||||
GR.setviewport(viewport[1], viewport[2], viewport[3], viewport[4])
|
GR.setviewport(viewport[1], viewport[2], viewport[3], viewport[4])
|
||||||
|
|
||||||
scale = d[:scale]
|
scale = 0
|
||||||
|
d[:xscale] == :log10 && (scale |= GR.OPTION_X_LOG)
|
||||||
|
d[:yscale] == :log10 && (scale |= GR.OPTION_Y_LOG)
|
||||||
|
get(d, :xflip, false) && (scale |= GR.OPTION_FLIP_X)
|
||||||
|
get(d, :yflip, false) && (scale |= GR.OPTION_FLIP_Y)
|
||||||
|
|
||||||
for axis = 1:num_axes
|
for axis = 1:num_axes
|
||||||
xmin, xmax, ymin, ymax = extrema[axis,:]
|
xmin, xmax, ymin, ymax = extrema[axis,:]
|
||||||
if scale & GR.OPTION_X_LOG == 0
|
if scale & GR.OPTION_X_LOG == 0
|
||||||
@ -555,13 +560,6 @@ function _before_update_plot(plt::Plot{GRPackage})
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _update_plot(plt::Plot{GRPackage}, d::Dict)
|
function _update_plot(plt::Plot{GRPackage}, d::Dict)
|
||||||
scale = 0
|
|
||||||
d[:xscale] == :log10 && (scale |= GR.OPTION_X_LOG)
|
|
||||||
d[:yscale] == :log10 && (scale |= GR.OPTION_Y_LOG)
|
|
||||||
get(d, :xflip, false) && (scale |= GR.OPTION_FLIP_X)
|
|
||||||
get(d, :yflip, false) && (scale |= GR.OPTION_FLIP_Y)
|
|
||||||
plt.plotargs[:scale] = scale
|
|
||||||
|
|
||||||
for k in (:title, :xlabel, :ylabel)
|
for k in (:title, :xlabel, :ylabel)
|
||||||
haskey(d, k) && (plt.plotargs[k] = d[k])
|
haskey(d, k) && (plt.plotargs[k] = d[k])
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user