GOffice.GraphChartMap

Fields

None

Methods

class

new (chart, area, axis0, axis1, axis2, fill_area)

free ()

get_axis_map (index)

get_polar_parms ()

is_valid ()

make_close_path (x, y, n_points, fill_type)

make_path (x, y, n_points, interpolation, skip_invalid, data)

view_to_2D (x, y, u, v)

Details

class GOffice.GraphChartMap
classmethod new(chart, area, axis0, axis1, axis2, fill_area)
Parameters:
Returns:

a new GOffice.GraphChartMap object.

Return type:

GOffice.GraphChartMap

Creates a new GOffice.GraphChartMap, used for conversion from data space to canvas space.

free()

Frees self object.

get_axis_map(index)
Parameters:

index (int) – axis index

Returns:

a GOffice.GraphAxisMap.

Return type:

GOffice.GraphAxisMap

Convenience function which returns one of the associated axis_map.

Valid values are in range [0..2].

get_polar_parms()
Returns:

a GOffice.GraphChartMapPolarData struct.

Return type:

GOffice.GraphChartMapPolarData

Convenience function for retrieving data related to polar plot layout.

is_valid()
Returns:

True if self is valid.

Return type:

bool

Tests if self was correctly initializied, i.e. if all associated axis_map are valid (see GOffice.GraphAxisMap.is_valid() ).

given to GOffice.GraphChartMap.new.

make_close_path(x, y, n_points, fill_type)
Parameters:
Returns:

a new GOffice.Path using x and y data, with respect to fill_type.

Return type:

GOffice.Path

make_path(x, y, n_points, interpolation, skip_invalid, data)
Parameters:
  • x (float) – x data

  • y (float) – y data

  • n_points (int) – number of points

  • interpolation (GOffice.LineInterpolation) – interpolation type

  • skip_invalid (bool) – whether to ignore invalid data or interrupt the interpolation

  • data (object or None) – a user pointer

Returns:

a new GOffice.Path using x and y data, each valid point being connected with respect to interpolation.

Return type:

GOffice.Path

view_to_2D(x, y, u, v)
Parameters:
  • x (float) – data x GOffice.value

  • y (float) – data y GOffice.value

  • u (float) – placeholder for x converted GOffice.value

  • v (float) – placeholder for y converted GOffice.value

Converts a 2D coordinate from canvas space to data space.