Allow styling of magnification shape in lens!() (#3860)
* 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!(). * Update src/recipes.jl Co-authored-by: t-bltg <tf.bltg@gmail.com> * Update .zenodo.json Co-authored-by: t-bltg <tf.bltg@gmail.com> Co-authored-by: Simon Christ <SimonChrist@gmx.de>
This commit is contained in:
parent
4f0f84f400
commit
f06225655d
@ -696,6 +696,12 @@
|
|||||||
{
|
{
|
||||||
"name": "Jan Thorben Schneider",
|
"name": "Jan Thorben Schneider",
|
||||||
"type": "Other"
|
"type": "Other"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"orcid": "0000-0003-4102-2460",
|
||||||
|
"affiliation": "Alogus Research Corporation:,
|
||||||
|
"name": "Lee Phillips",
|
||||||
|
"type": "Other"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"upload_type": "software"
|
"upload_type": "software"
|
||||||
|
|||||||
@ -1042,7 +1042,13 @@ export lens!
|
|||||||
series_plotindex := backup[:series_plotindex]
|
series_plotindex := backup[:series_plotindex]
|
||||||
seriestype := :path
|
seriestype := :path
|
||||||
primary := false
|
primary := false
|
||||||
linecolor := :lightgray
|
linecolor := get(backup, :linecolor, :lightgray)
|
||||||
|
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