In [ ]:
%matplotlib inline
import sympy as sp
import numpy as np
import matplotlib.pyplot as plt
In [ ]:
plt.style.use('ggplot')
x = np.linspace(0,2*np.pi,100)
y = np.sin(5*x) * np.exp(-x)
plt.plot(x,y)
plt.title("The function $y\ =\ \sin(5x)\ e^{-x}$")
plt.xlabel("This is in units of 2$\pi$")
plt.text(2.0, 0.4, '$\Delta t = \gamma\, \Delta t$', color='green', fontsize=36)
In [ ]:
z = sp.symbols('z')
In [ ]:
a = 1/( (z+2)*(z+1) )
print(sp.latex(a))
In [ ]:
print(sp.latex(sp.Integral(z**2,z)))
In [ ]:
from astropy.io import ascii
from astropy.table import QTable
In [ ]:
T = QTable.read('Zodiac.csv', format='ascii.csv')
In [ ]:
T[0:3]
In [ ]:
ascii.write(T, format='latex')
In [ ]:
t = np.linspace(0,12*np.pi,2000)
fig,ax = plt.subplots(1,1) # One window
fig.set_size_inches(11,8.5) # (width,height) - letter paper landscape
fig.tight_layout() # Make better use of space on plot