yt.geometry.coordinates.cartesian_coordinates module

Definitions for cartesian coordinate systems

class yt.geometry.coordinates.cartesian_coordinates.CartesianCoordinateHandler(ds, ordering=('x', 'y', 'z'))[source]

Bases: yt.geometry.coordinates.coordinate_handler.CoordinateHandler

axis_id
axis_name
convert_from_cartesian(coord)[source]
convert_from_cylindrical(coord)[source]
convert_from_spherical(coord)[source]
convert_to_cartesian(coord)[source]
convert_to_cylindrical(coord)[source]
convert_to_spherical(coord)[source]
distance(start, end)
image_axis_name
name = 'cartesian'
period
pixelize(dimension, data_source, field, bounds, size, antialias=True, periodic=True)[source]

Method for pixelizing datasets in preparation for two-dimensional image plots. Relies on several sampling routines written in cython

pixelize_line(field, start_point, end_point, npoints)[source]

Method for sampling datasets along a line in preparation for one-dimensional line plots. For UnstructuredMesh, relies on a sampling routine written in cython

sanitize_center(center, axis)
sanitize_depth(depth)
sanitize_width(axis, width, depth)
setup_fields(registry)[source]
x_axis
y_axis