mpl_toolkits.axes_grid1.inset_locator.mark_inset¶
-
mpl_toolkits.axes_grid1.inset_locator.
mark_inset
(parent_axes, inset_axes, loc1, loc2, **kwargs)[源代码]¶ 绘制一个框以标记由插入轴表示的区域的位置。
此函数在 parent_axes 在的边界框处 inset_axes ,并通过在角上绘制线来显示与插入轴的连接,从而产生“放大”效果。
参数: - parent_axes :
matplotlib.axes.Axes
matplotlib.axes.Axes
包含插入轴区域的轴。
- inset_axes :
matplotlib.axes.Axes
matplotlib.axes.Axes
插入轴。
- LoC1,LoC2{ 1, 2, 3,4 }
用于连接插入轴和父轴中区域的角。
- **kwargs
绘制的线条和方框的面片属性:
财产 描述 agg_filter
一种过滤函数,它接受一个(m,n,3)浮点数组和一个dpi值,并返回一个(m,n,3)数组。 alpha
浮动或无 animated
布尔 antialiased
或者aa未知的 capstyle
“对接”、“圆形”、“突出” clip_box
Bbox
clip_on
布尔 clip_path
面片或(路径、变换)或无 color
颜色 contains
未知的 edgecolor
或ec颜色或无或“自动” facecolor
或fc颜色或无 figure
Figure
fill
布尔 gid
STR hatch
'/'、''、''、'-'、'+'、'X'、'O'、'O'、'、'、'*' in_layout
布尔 joinstyle
'miter'、'round'、'bevel' label
对象 linestyle
或ls'-'、'-'、'-'、'-'、':'、'、'、'(偏移量、开/关顺序)、… linewidth
或lw浮动或无 path_effects
AbstractPathEffect
picker
无、布尔或可呼叫 rasterized
布尔或无 sketch_params
(比例:浮动,长度:浮动,随机性:浮动) snap
布尔或无 transform
Transform
url
STR visible
布尔 zorder
浮动
返回: - pp :
matplotlib.patches.Patch
matplotlib.patches.Patch
为表示插入轴的区域而绘制的面片。
- P1,P2 :
matplotlib.patches.Patch
matplotlib.patches.Patch
连接插入轴及其区域的两个角的补片。
- parent_axes :