-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtime_results_plot.py
More file actions
36 lines (28 loc) · 864 Bytes
/
time_results_plot.py
File metadata and controls
36 lines (28 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
"""Untitled1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-lPAmnrKVVc6Y7sRwY3hTwY33n3uVlbp
# Results plot
"""
# install Python libraries
!pip3 install numpy
!pip3 install matplotlib
import numpy as np
import matplotlib.pyplot as plt
"""## Data """
y_label = "Time (in seconds)"
x_label = "# Datanode instances"
y_values = [58.0740, 57.3653, 57.3412, 57.2536, 56.9027, 56.4193]
x_values = [1, 2, 3, 4, 5, 6]
plt.figure(figsize=(25,10))
# line
plt.plot(x_values, y_values, marker='o', linestyle='solid', linewidth=1, markersize=10, color="blue")
# axis
plt.xticks(x_values, rotation=0)
plt.yticks(y_values, rotation=0)
# axis labels
plt.ylabel(y_label, fontsize=15)
plt.xlabel(x_label, fontsize=15)
# grid
plt.grid(color='#000', linestyle='--', linewidth=0.1)