Skip to content

Birth Chart ​

The birth chart is the most common chart in astrology. It is a representation of the sky at the moment of birth of a person. The birth chart is a map of the sky at the time of birth, showing the positions of the planets in the zodiac signs and houses. The birth chart is also known as the natal chart.

Standard Birth Chart ​

python
from kerykeion import AstrologicalSubject, KerykeionChartSVG
from pathlib import Path
import logging

# Set global log leve to DEBUG, and to a file
logging.basicConfig(level=logging.DEBUG, force=True, stream=open("kerykeion.log", "a"))


# Create a AstrologicalSubject subject
subject = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "USA")

# Create a KerykeionChartSVG, the default destination is the home directory of the user, but you can specify a path
HOME_DIR = str(Path.home())

# THE OUTPUT DIRECTORY MUST EXIST!
DOC_DIR = HOME_DIR + "/Documents"

# Current directory
CURRENT_DIR = Path(__file__).parent.absolute()

chart = KerykeionChartSVG(subject, new_output_directory=DOC_DIR, new_settings_file=CURRENT_DIR / "kr.config.json")

# Creates the SVG in the output directory
chart.makeSVG()

The output will be a SVG file in the output directory with the name KanyeNatalChart.svg

Birth Chart

External Birth Chart ​

python
from kerykeion import AstrologicalSubject, KerykeionChartSVG

# Create a AstrologicalSubject subject
subject = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "USA")

# Create a KerykeionChartSVG object with ExternalNatal chart type
chart = KerykeionChartSVG(subject, chart_type="ExternalNatal")

# Creates the SVG in the output directory
chart.makeSVG()

The output will be a SVG file in the output directory with the name KanyeExternalNatalChart.svg. Since we did not set manually the output directory, the file will be in the home directory of the user, eg. /home/user/KanyeExternalNatalChart.svg.

External Birth Chart