| 408 | return fig |
| 409 | |
| 410 | def PyplotBoxPlot(): |
| 411 | import numpy as np |
| 412 | import matplotlib.pyplot as plt |
| 413 | |
| 414 | # Fixing random state for reproducibility |
| 415 | np.random.seed(19680801) |
| 416 | |
| 417 | # fake up some data |
| 418 | spread = np.random.rand(50) * 100 |
| 419 | center = np.ones(25) * 50 |
| 420 | flier_high = np.random.rand(10) * 100 + 100 |
| 421 | flier_low = np.random.rand(10) * -100 |
| 422 | data = np.concatenate((spread, center, flier_high, flier_low), 0) |
| 423 | fig1, ax1 = plt.subplots() |
| 424 | ax1.set_title('Basic Plot') |
| 425 | ax1.boxplot(data) |
| 426 | return fig1 |
| 427 | |
| 428 | def PyplotRadarChart(): |
| 429 | import numpy as np |