# Getting started with pelican

Posted on Tue 08 November 2016 in posts

# First plot using pelican¶

I am trying this new format for blogging using jupyter notebooks and pelican library. The motivation is to easily share my experiments using notebooks and write accompanying thoughts.

For this post I will test if the matplotlib plotting and latex equations work. I will simply be plotting the following 2 equations.

$x \in [-1,1]$

$y = sin(x)$

$y_1 = cos(x)$

In [1]:

```
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_context("poster")
sns.set_style("ticks")
```

In [2]:

```
x = np.arange(-10,10, 0.001)
y = np.sin(x)
y1 = np.cos(x)
plt.plot(x,y, color="r", label="$sin(x)$")
plt.plot(x,y1, color="b", label="$cos(x)$")
plt.axhline(y=0, color="k", lw=1)
plt.ylim([-1,1.5])
plt.legend()
sns.despine()
```

In [3]:

```
df = pd.DataFrame({"x": x, "y": y, "y1": y1})
df.head()
```

Out[3]:

So, everything works just fine. Let us try to deploy this to my github page.

In [ ]:

```
```