Spec-Zone.ru › Matplotlib

mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple

classmpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple(nx, ny)[source]

A helper class to figure out the range of grid lines that need to be drawn.

Parameters:
nx, nyint

The number of samples in each direction.

__call__(transform_xy, x1, y1, x2, y2)[source]

Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x1, y1, x2, y2).

The intended use is to have (x1, y1, x2, y2) in axes coordinates, and have transform_xy be the transform from axes coordinates to data coordinates; this method then returns the range of data coordinates that span the actual axes.

The computation is done by sampling nx * ny equispaced points in the (x1, y1, x2, y2) box and finding the resulting points with extremal coordinates; then adding some padding to take into account the finite sampling.

As each sampling step covers a relative range of 1/nx or 1/ny, the padding is computed by expanding the span covered by the extremal coordinates by these fractions.

Примеры использования mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple

Демонстрация axis_direction

Демонстрация axis_direction

Демонстрация криволинейной сетки

Демонстрация криволинейной сетки

Демонстрация CurveLinear Grid2

Демонстрация CurveLinear Grid2

Демонстрация floating_axis

Демонстрация floating_axis

Простой Axis Pad

Простой Axis Pad

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API