# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Scatter Plot

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('data/circle_data.csv', sep=';') # delimiter atau separator terganmtung data raw
df.head()

x = df.x
y = df.y
rad = df.radius

plt.scatter(x, y)

plt.scatter(x, y)
plt.axis("equal");

plt.scatter(x, y, c='r') # merubah warna
plt.axis("equal");

plt.scatter(x, y, c='r', s=10) # merubah size
plt.axis("equal");

plt.scatter(x, y, c='r', s=rad*50) # merubah size berdasarkan radius, makin ke pusat makih kecil
plt.axis("equal");

plt.scatter(x, y, c=rad, s=rad*50, cmap='seismic')
plt.axis("equal");





















StarcoderdataJupyterScriptsDedupFiltered