Core plotting module

This module contains the advanced backend switching while plotting.

class einsteinpy.plotting.geodesics.core.GeodesicPlotter(ax=None, attractor_radius_scale=- 1.0, attractor_color='#ffcc00', use_3d=False)[source]

Bases: einsteinpy.plotting.geodesics.static.StaticGeodesicPlotter

Class for automatically switching between Matplotlib and Plotly depending on platform used.

Constructor.

Parameters
  • ax (Axes) – Matplotlib Axes object.

  • attractor_radius_scale (float, optional) – Scales the attractor radius by the value given. Default is 1. It is used to make plots look more clear if needed.

  • attractor_color (string, optional) – Color which is used to denote the attractor. Defaults to #ffcc00.