This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type Node struct { | |
prev *Node | |
next *Node | |
key interface{} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Plotagem de uma reta simples f(x) = 2x | |
""" | |
arr1 = np.array([1, 2, 3, 4, 5, 6, 7 ,8, 9, 10]) | |
arr2 = np.array([2, 4, 6, 8, 10, 12, 14 ,16, 18, 20]) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Acrescentando Grid | |
""" | |
arr1 = np.array([1, 2, 3, 4, 5, 6, 7 ,8, 9, 10]) | |
arr2 = np.array([2, 4, 6, 8, 10, 12, 14 ,16, 18, 20]) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Acrescentando Grid | |
""" | |
arr1 = np.array([1, 2, 3, 4, 5, 6, 7 ,8, 9, 10]) | |
arr2 = np.array([2, 4, 6, 8, 10, 12, 14 ,16, 18, 20]) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Mais de uma linha no gráfico | |
""" | |
x = np.arange(1, 11) | |
print(x) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Escolhendo cores para as retas | |
""" | |
x = np.arange(1, 11) | |
print(x) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Inserindo titulo e legendas | |
""" | |
x = np.arange(1, 11) | |
print(x) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Inserindo titulo e legendas | |
""" | |
x = np.arange(1, 11) | |
print(x) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
Selecionando posição das legendas | |
""" | |
x = np.arange(1, 11) | |
print(x) | |
plt.figure(figsize=(6, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pl | |
import matplotlib.pyplot as plt | |
""" | |
Lendo um arquivo .csv com pandas e criando um pandas data frame | |
""" | |
dataframe = pl.read_csv('/home/francisco/Projects/Pycharm/matplot-pandas-tutorial' | |
'/files/annual-real-gnp-us-1909-to-1970.csv') | |
plt.figure(figsize=(8, 6)) |
OlderNewer