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.Axesmatplotlib.axes.Axes 包含插入轴区域的轴。
- inset_axes :
matplotlib.axes.Axesmatplotlib.axes.Axes 插入轴。
- LoC1,LoC2{ 1, 2, 3,4 }
用于连接插入轴和父轴中区域的角。
- **kwargs
绘制的线条和方框的面片属性:
财产 描述 agg_filter一种过滤函数,它接受一个(m,n,3)浮点数组和一个dpi值,并返回一个(m,n,3)数组。 alpha浮动或无 animated布尔 antialiased或者aa未知的 capstyle“对接”、“圆形”、“突出” clip_boxBboxclip_on布尔 clip_path面片或(路径、变换)或无 color颜色 contains未知的 edgecolor或ec颜色或无或“自动” facecolor或fc颜色或无 figureFigurefill布尔 gidSTR hatch'/'、''、''、'-'、'+'、'X'、'O'、'O'、'、'、'*' in_layout布尔 joinstyle'miter'、'round'、'bevel' label对象 linestyle或ls'-'、'-'、'-'、'-'、':'、'、'、'(偏移量、开/关顺序)、… linewidth或lw浮动或无 path_effectsAbstractPathEffectpicker无、布尔或可呼叫 rasterized布尔或无 sketch_params(比例:浮动,长度:浮动,随机性:浮动) snap布尔或无 transformTransformurlSTR visible布尔 zorder浮动
返回: - pp :
matplotlib.patches.Patchmatplotlib.patches.Patch 为表示插入轴的区域而绘制的面片。
- P1,P2 :
matplotlib.patches.Patchmatplotlib.patches.Patch 连接插入轴及其区域的两个角的补片。
- parent_axes :