Skip to content

Commit 041daed

Browse files
committed
Remove font dependencies from scripts
1 parent d9eacb0 commit 041daed

File tree

8 files changed

+1
-12
lines changed

8 files changed

+1
-12
lines changed

python-examples/bayesian-optimization.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def objective_func(x: np.ndarray) -> float:
3434
# Set up the plot design
3535
sns.set()
3636
sns.set_context()
37-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
3837

3938
for i in range(NUM_ITERS):
4039
# Proceed the optimization step
@@ -61,7 +60,7 @@ def objective_func(x: np.ndarray) -> float:
6160
# Prepare a figure object
6261
fig = plt.figure(figsize=FIG_SIZE, dpi=DPI, constrained_layout=True)
6362
grid_spec = fig.add_gridspec(3, 1)
64-
fig.suptitle("Bayesian Optimization [#iterations = {:02}]".format(i + 1))
63+
fig.suptitle("Bayesian Optimization [#iter = {:02}]".format(i + 1))
6564

6665
# Begin to draw the top plot
6766
ax = fig.add_subplot(grid_spec[0:2, 0])

python-examples/classical-mds-image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
# Set style
3030
sns.set()
3131
sns.set_context()
32-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
3332

3433
# Draw plot
3534
fig = plt.figure(figsize=FIG_SIZE, dpi=DPI)

python-examples/rbf-interpolation-comparison.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def objective_func(x: np.ndarray) -> float:
3131
# Set up the plot design
3232
sns.set()
3333
sns.set_context()
34-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
3534

3635
# Prepare a figure object
3736
fig = plt.figure(figsize=FIG_SIZE, dpi=DPI)

python-examples/rbf-interpolation-exact.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pymathtoolbox
22
import numpy as np
3-
import random
43
import math
54
import matplotlib.pyplot as plt
65
import seaborn as sns
@@ -40,7 +39,6 @@ def objective_func(x: np.ndarray) -> float:
4039
# Set up the plot design
4140
sns.set()
4241
sns.set_context()
43-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
4442

4543
# Calculate sequences of interpolated values
4644
x_samples = np.arange(0.0, 1.0, 0.001)

python-examples/rbf-interpolation-polynomial.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import pymathtoolbox
22
import numpy as np
3-
import random
4-
import math
53
import matplotlib.pyplot as plt
64
import seaborn as sns
75

@@ -18,7 +16,6 @@
1816
# Set up the plot design
1917
sns.set()
2018
sns.set_context()
21-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
2219

2320
# Prepare a figure object
2421
fig = plt.figure(figsize=FIG_SIZE, dpi=DPI)

python-examples/rbf-interpolation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def objective_func(x: np.ndarray) -> float:
4343
# Set up the plot design
4444
sns.set()
4545
sns.set_context()
46-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
4746

4847
# Calculate sequences of interpolated values
4948
x_samples = np.arange(0.0, 1.0, 0.001)

python-examples/som-image-1d.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Set plot style
1919
sns.set()
2020
sns.set_context()
21-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
2221

2322
# Load an image
2423
asset_dir_path = os.path.dirname(os.path.abspath(__file__)) + "/assets"

python-examples/som-image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# Set plot style
1818
sns.set()
1919
sns.set_context()
20-
plt.rcParams['font.sans-serif'] = ["Linux Biolinum O", "Linux Biolinum"]
2120

2221
# Load an image
2322
asset_dir_path = os.path.dirname(os.path.abspath(__file__)) + "/assets"

0 commit comments

Comments
 (0)