Skip to content

Commit 9ff900d

Browse files
remove fig2img
1 parent 7ba6d7d commit 9ff900d

File tree

3 files changed

+3
-41
lines changed

3 files changed

+3
-41
lines changed

pyllusion/image/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Pyllusion submodule.
33
"""
44

5-
from .fig2img import fig2img
65
from .image_blob import image_blob, image_blobs
76
from .image_circle import image_circle, image_circles
87
from .image_line import image_line
@@ -24,6 +23,5 @@
2423
"image_rectangle",
2524
"image_mosaic",
2625
"image_scramble",
27-
"rescale",
28-
"fig2img"
26+
"rescale"
2927
]

pyllusion/image/fig2img.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

pyllusion/image/image_mosaic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def image_mosaic(image_list, ncols="auto", nrows="auto"):
3636
ncols = int(np.ceil(np.sqrt(n)))
3737
nrows = int(n / ncols)
3838
elif ncols == "auto" and nrows != "auto":
39-
ncols = int(n / nrows)
39+
ncols = int(np.ceil(n / nrows))
4040
elif ncols != "auto" and nrows == "auto":
41-
nrows = int(n / ncols)
41+
nrows = int(np.ceil(n / ncols))
4242

4343
# Generate image
4444
new = PIL.Image.new("RGB", (image_list[0].width * ncols, image_list[0].height * nrows), color=(255, 255, 255))

0 commit comments

Comments
 (0)