* fix : plot method updated

* doc : CHANGELOG updated
pull/167/head
Sepand Haghighi 2022-11-27 16:07:43 +03:30 zatwierdzone przez GitHub
rodzic f21f82c225
commit 539547a7c1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 13 dodań i 10 usunięć

Wyświetl plik

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `generate` method optimized
- Test system modified
- `Python 3.11` added to `test.yml`
- `plot` method warning bug fixed
### Removed
- `fill_data` function
## [0.9] - 2022-09-28

Wyświetl plik

@ -12,7 +12,7 @@ from .functions import float_range, save_data_file, save_fig_file, save_fig_buf,
from .functions import load_data, load_config, random_equation_gen, nft_storage_upload
from .functions import set_background
from .params import *
from warnings import warn
from warnings import warn, catch_warnings, simplefilter
class GenerativeImage:
@ -144,15 +144,17 @@ class GenerativeImage:
fig.set_size_inches(self.size[0], self.size[1])
ax = fig.add_subplot(111, projection=self.projection)
set_background(self.bgcolor, fig, ax)
ax.scatter(
self.data2,
self.data1,
alpha=self.alpha,
c=self.color,
cmap=self.cmap,
s=self.spot_size,
lw=self.linewidth,
marker=self.marker)
with catch_warnings():
simplefilter("ignore")
ax.scatter(
self.data2,
self.data1,
alpha=self.alpha,
c=self.color,
cmap=self.cmap,
s=self.spot_size,
lw=self.linewidth,
marker=self.marker)
ax.set_axis_off()
ax.patch.set_zorder(-1)
ax.add_artist(ax.patch)