# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: conda env tensorflow
#     language: python
#     name: tensorflow
# ---

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

a = np.arange(0,20)
b = np.arange(20,40)

plt.scatter(a,b,c="b")

plt.scatter(a,b,c="b")
plt.xlabel("X axis")
plt.ylabel("Y axis")
plt.title("mat graph")
plt.savefig("mat.png")

b = b*b

plt.plot(a,b,"r--")

plt.plot(a,b,"r*-")

plt.plot(a,b,"ro--")

plt.plot(a,b,"ro",linestyle="dashed",linewidth=3)

plt.plot(a,b,"ro",linestyle="dashed",linewidth=3,markersize=10)

# # creating subplots 

plt.subplot(2,2,1)
plt.plot(a,b,c="r")
plt.subplot(2,2,2)
plt.plot(a,b,c="b")
plt.subplot(2,2,3)
plt.plot(a,b,c="y")

np.pi

x = np.arange(0,4*np.pi,0.1)
y = np.sin(x)
plt.subplot(2,1,1)
plt.plot(x,y)
y = np.cos(x)
plt.subplot(2,1,2)
plt.plot(x,y)

# +
a = np.arange(1,5)
b = np.arange(6,10)

a1 = np.arange(11,15)
b1 = np.arange(16,20)
# -

plt.bar(a,b,color="b")

print(a1,b1)

plt.bar(a,b,color="b")
plt.bar(a1,b1,color="g")

a = np.array([22,87,5,43,56,73,55,54,11,20,51,5,79,31,27]) 
plt.hist(a)

plt.hist(a,bins=20)

data = [np.random.normal(0, std, 100) for std in range(1, 4)]
data

plt.boxplot(data,vert=True,patch_artist=True)

size = [120,54,73,87]
color = ["r","b","y","g"]
labels = ["Python","C","C++","Java"]
explode = [0.4,0,0,0]
plt.pie(size,explode=explode,colors=color,labels=labels,autopct="%1.1f%%",shadow=True)
plt.axis("equal")



StarcoderdataJupyterScriptsDedupFiltered