sepandhaghighi/samila

Bug in Point Colors

sadrasabouri opened this issue · 0 comments

Description

There's a odd bug in which when you call plot method without any color parameter it'll generate a Samila art with a color different from DEFAULT_COLOR which is black.


[Probable solution]: I change edgecolor to c here and it became OK.

Steps/Code to Reproduce

from samila import *
import math
import random
import matplotlib.pyplot as plt

def f1(x, y):
    return random.uniform(-1, 1) * np.cos(x ** 2) ** 2 + np.floor(x - y) + 2 * x

def f2(x, y):
    return random.gauss(0, 2) + 2 * x - y**3 + random.uniform(-3, 3) * np.cos(x * y)


GI = GenerativeImage(f1, f2)
GI.generate(step=0.01, seed=10)
GI.plot(projection=Projection.POLAR,
        spot_size=2)
plt.show()

Expected Behavior

Figure_2

Actual Behavior

Figure_1

Operating System

Ubuntu 20.04

Python Version

3.8

Matplotlib Version

3.4.3

Samila Version (Use : samila.__version__)

0.3