# Mathober2024_Flexible

# GraphableOres

For my eighth sketch of Mathober2024, ***GraphableOres*** is coded in **Python** with a Ore-like graph that is being stretched and morphed through ***Glitchlab***. ***Flexible Graph*** is the 7th Prompt for this year’s Mathober.

## **Poetry**

```ocaml
Shaking and Flipping
Tilting and twisting
Spinning and Tipping
Over and Under,
As they wander,
Into a whole new listing
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433209369/a8c9e280-7d05-4d79-99c5-8a2aa3419cb3.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433213661/af30c51d-c8e1-4fb9-8dda-8dc8bb3e233a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433217784/4390d5f4-b325-4305-803d-f62ca185b031.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433224402/1be44bc2-0381-4147-bdc2-8d74cbd54373.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433232273/95b91bc7-078a-4c5a-b378-0bdd471fb50e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433238853/fdca8077-7f96-4528-9d62-2ea5ba363eb3.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728433245432/ea2e9667-7fc1-4e4d-a2b7-422ab6d2572f.jpeg align="center")

## Python Code

```python
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

def plotting(num,var_mean1,var_mean2,rate,styling):
    
    sns.set_theme(style="dark")

    # Simulate data from a bivariate Gaussian
    n = num
    mean = [0, var_mean2]
    cov = [(2, var_mean1), (var_mean1, .2)]
    rng = np.random.RandomState(rate)
    x, y = rng.multivariate_normal(mean, cov, n).T

    # Draw a combo histogram and scatterplot with density contours
    f, ax = plt.subplots(figsize=(6, 6))
    sns.scatterplot(x=x, y=y, s=5, color=".15")
    sns.histplot(x=x, y=y, bins=50, pthresh=.1, cmap= styling)
    sns.kdeplot(x=x, y=y, levels=5, color="w", linewidths=1)
    
plotting(5000,0.4,1,5,'Set3')
plotting(20000,0.8,0,10,'mako')
plotting(250,1.2,0.5,3,'cool')
```
