Allow styling of magnification shape in lens!()
The guide lines that indicate the region of the plot magnified in the inset lens plot, called the magnification shape, are hard-coded with the :lightgray color and are drawn with the default other line attributes. This is often too light to be seen clearly and could be a problem for publication. This commit allows the user to set the linecolor, linewidth, and linestyle in the call to lens!().
This commit is contained in:
parent
a65cda8b7e
commit
52e6d3caf7
@ -1042,7 +1042,17 @@ export lens!
|
|||||||
series_plotindex := backup[:series_plotindex]
|
series_plotindex := backup[:series_plotindex]
|
||||||
seriestype := :path
|
seriestype := :path
|
||||||
primary := false
|
primary := false
|
||||||
|
if haskey(backup, :linecolor)
|
||||||
|
linecolor := backup[:linecolor]
|
||||||
|
else
|
||||||
linecolor := :lightgray
|
linecolor := :lightgray
|
||||||
|
end
|
||||||
|
if haskey(backup, :linestyle)
|
||||||
|
linestyle := backup[:linestyle]
|
||||||
|
end
|
||||||
|
if haskey(backup, :linewidth)
|
||||||
|
linewidth := backup[:linewidth]
|
||||||
|
end
|
||||||
bbx_mag = (x1 + x2) / 2
|
bbx_mag = (x1 + x2) / 2
|
||||||
bby_mag = (y1 + y2) / 2
|
bby_mag = (y1 + y2) / 2
|
||||||
xi_lens, yi_lens =
|
xi_lens, yi_lens =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user