Skip to content

Commit

Permalink
Fixing axes labes in plot function version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Esben Bjerrum committed Jun 10, 2023
1 parent 8cc30e1 commit 33bf0bd
Show file tree
Hide file tree
Showing 15 changed files with 5,908 additions and 5,316 deletions.
Binary file modified notebooks/images/AtomPairFingerprintTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,604 changes: 844 additions & 760 deletions notebooks/images/AtomPairFingerprintTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified notebooks/images/Desc2DTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,608 changes: 846 additions & 762 deletions notebooks/images/Desc2DTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified notebooks/images/MACCSTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,606 changes: 845 additions & 761 deletions notebooks/images/MACCSTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified notebooks/images/MorganTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,612 changes: 848 additions & 764 deletions notebooks/images/MorganTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified notebooks/images/RDKitFPTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,594 changes: 839 additions & 755 deletions notebooks/images/RDKitFPTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified notebooks/images/SECFingerprintTransformer_par.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,586 changes: 835 additions & 751 deletions notebooks/images/SECFingerprintTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,602 changes: 843 additions & 759 deletions notebooks/images/TopologicalTorsionFingerprintTransformer_par.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions notebooks/plot_benchmark_parallism.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
from matplotlib.colors import FuncNorm
import math
from matplotlib.colors import TwoSlopeNorm
import numpy as np
import matplotlib
import matplotlib as mpl
import matplotlib.pyplot as plt

#%%
results_dir = 'parallel_results'

#%%
files = glob.glob(f"{results_dir}/Morgan*csv")

files
Expand All @@ -39,10 +44,7 @@ def make_plot(results, transformer_name):


#%%
import numpy as np
import matplotlib
import matplotlib as mpl
import matplotlib.pyplot as plt


vegetables = ["cucumber", "tomato", "lettuce", "asparagus",
"potato", "wheat", "barley"]
Expand Down Expand Up @@ -123,6 +125,8 @@ def make_plot_2(results, transformer_name):
mol_pr_sec = [int(c) for c in results.columns]/results.iloc[0]

ax.set_title(f"Descriptor calculation parallelization times\n{transformer_name}\nMaximum throughput single-threaded: {mol_pr_sec.max():0.0F} mol/s")
ax.set_xlabel("Dataset size")
ax.set_ylabel("Number of processes")
fig.tight_layout()
return fig

Expand Down

0 comments on commit 33bf0bd

Please sign in to comment.