Add aspect_ratio to PGFPlots backend.
This commit is contained in:
parent
8c8ede361e
commit
7f0c4747b4
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
supportedArgs(::PGFPlotsBackend) = [
|
supportedArgs(::PGFPlotsBackend) = [
|
||||||
# :annotation,
|
# :annotation,
|
||||||
|
:aspect_ratio,
|
||||||
# :axis,
|
# :axis,
|
||||||
:background_color,
|
:background_color,
|
||||||
# :color_palette,
|
# :color_palette,
|
||||||
@ -319,11 +320,14 @@ function _pgfplots_get_axis_kwargs(d)
|
|||||||
axisargs[:ymax] = d[:ylims][2]
|
axisargs[:ymax] = d[:ylims][2]
|
||||||
end
|
end
|
||||||
if d[:grid] == true
|
if d[:grid] == true
|
||||||
axisargs[:style] *= "grid = major"
|
axisargs[:style] *= "grid = major,"
|
||||||
elseif d[:grid] == false
|
elseif d[:grid] == false
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if d[:aspect_ratio] == :equal
|
||||||
|
axisargs[:axisEqual] = "true"
|
||||||
|
end
|
||||||
axisargs
|
axisargs
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user