Small changes
This commit is contained in:
parent
97e6fd8cd2
commit
51360171c4
3 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from .regrain import regrain
|
||||
from .pdf_transfer_1d import pdf_transfer_1d
|
||||
from .pdf_transfer_3d import pdf_transfer_3d
|
||||
from .apply_histogram import apply_histogram
|
||||
|
|
|
|||
|
|
@ -5,3 +5,4 @@ from .kldiv import kldiv
|
|||
from .set_up_logging import set_up_logging
|
||||
from .serialise_hparams import serialise_hparams
|
||||
from .get_device import get_device
|
||||
from .delete_corrupt_images import delete_corrupt_images
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import numpy as np
|
|||
|
||||
|
||||
def plot_histograms_in_3d(
|
||||
histograms: Dict[str, np.ndarray], histograms_per_row: int = 3
|
||||
histograms: Dict[str, np.ndarray], histograms_per_row: int = 3, height: int = 300
|
||||
):
|
||||
column_count = min(histograms_per_row, len(histograms))
|
||||
row_count = ceil(len(histograms) / histograms_per_row)
|
||||
|
|
@ -35,7 +35,7 @@ def plot_histograms_in_3d(
|
|||
)
|
||||
for i in range(1, len(histograms) + 1)
|
||||
}
|
||||
fig.update_layout(**scenes, height=300 * column_count)
|
||||
fig.update_layout(**scenes, height=height * column_count)
|
||||
fig.update_layout() # You can adjust the height as needed
|
||||
|
||||
fig.show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue