mpl_toolkits.axisartist.grid_finder.GridFinder

class mpl_toolkits.axisartist.grid_finder.GridFinder(transform, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]

Bases: object

transform : transform from the image coordinate (which will be the transData of the axes to the world coordinate.

or transform = (transform_xy, inv_transform_xy)

locator1, locator2 : grid locator for 1st and 2nd axis.

__dict__ = mappingproxy({'__module__': 'mpl_toolkits.axisartist.grid_finder', '__init__': <function GridFinder.__init__>, 'get_grid_info': <function GridFinder.get_grid_info>, '_get_raw_grid_lines': <function GridFinder._get_raw_grid_lines>, '_clip_grid_lines_and_find_ticks': <function GridFinder._clip_grid_lines_and_find_ticks>, 'update_transform': <function GridFinder.update_transform>, 'transform_xy': <function GridFinder.transform_xy>, 'inv_transform_xy': <function GridFinder.inv_transform_xy>, 'update': <function GridFinder.update>, '__dict__': <attribute '__dict__' of 'GridFinder' objects>, '__weakref__': <attribute '__weakref__' of 'GridFinder' objects>, '__doc__': None, '__annotations__': {}})
__init__(transform, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]

transform : transform from the image coordinate (which will be the transData of the axes to the world coordinate.

or transform = (transform_xy, inv_transform_xy)

locator1, locator2 : grid locator for 1st and 2nd axis.

__module__ = 'mpl_toolkits.axisartist.grid_finder'
__weakref__

list of weak references to the object (if defined)

get_grid_info(x1, y1, x2, y2)[source]
lon_values, lat_valueslist of grid values. if integer is given,
rough number of grids in each direction.
inv_transform_xy(x, y)[source]
transform_xy(x, y)[source]
update(**kw)[source]
update_transform(aux_trans)[source]