# Genuary2026_Polar

# PolarPlotting

**PolarPlotting** is coded in ***HydraVideoSynth & Python (plus a filter)*** and the polar graph is being used to plot (Genuary 2026 Prompt 10).

## Poem

```javascript
As the Code Plots
Where is the location of these dots?
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767484950753/6a9e3023-6140-4606-b98e-62536809a74c.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767484958245/3724a2f2-17f2-47c7-8fab-c654c95e9a22.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767484964048/e86b761d-e69e-4c3f-a283-9f32090e356e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767484969148/83310fae-c440-46c4-ab5a-42817c7363d4.png align="center")

## Code

### Python

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


def spiral(N, div_1, div_2, color1, color2,color3):

    # Compute areas and colors
    r = 2 * np.random.rand(N)
    theta = 2 * np.pi * np.random.rand(N)
    area = (50 * r* r)/ div_1
    colors = theta / div_2

    fig = plt.figure()
    #fig1 = plt.figure()

    ax = fig.add_subplot(projection='polar')
    ax1 = fig.add_subplot(projection='polar')
    ax2 = fig.add_subplot(projection='polar')

    c = ax.scatter(theta, r, c=colors, s=area, cmap= color1, alpha=0.675)
    c1 = ax1.scatter(theta/2, r, c=colors, s=area, cmap= color2, alpha=0.475)
    c1 = ax1.scatter(theta/1.5, r, c=colors, s=area/2, cmap= color3, alpha=0.375)
```

```python
spiral(150,2,1.25,'YlOrRd_r','gist_earth_r','ocean')
spiral(150,2.5,3.25,'ocean','ocean','ocean')
spiral(350,1.5,2.25,'gist_earth_r','gist_earth_r','gist_earth_r')
spiral(450,1.5,2.25,'gist_earth_r','ocean','ocean')
```

### HydraVideoSynth

```javascript
s0.initScreen()


src(s0).blend(src(s0).scale(0.95)).blend(src(s0).scale(0.90)).
blend(src(s0).scale(1.05)).blend(src(s0).scale(1.15).pixelate(500,500).scrollX(0.5)).
diff(src(s0).scale(2.15).pixelate(1000,1000).scrollX(0.5)).
add(src(s0).scale(1.25)).diff(src(s0).scale(0.90)).out()
```

```javascript
s0.initScreen()
s1.initScreen()


src(s0).blend(src(s0).scale(0.95)).blend(src(s1).scale(0.90)).
blend(src(s0).scale(1.05)).blend(src(s0).scale(1.15).pixelate(500,500).scrollX(0.5)).
blend(src(s1).scale(2.15).pixelate(1000,1000).scrollX(0.5)).out()
```
