Change in vdsm[master]: repoplot: Make it easier to add new graphs

nsoffer at redhat.com nsoffer at redhat.com
Fri Feb 26 23:09:57 UTC 2016


Nir Soffer has uploaded a new change for review.

Change subject: repoplot: Make it easier to add new graphs
......................................................................

repoplot: Make it easier to add new graphs

Adding new subplot does not require modifyng other plots now.

Change-Id: I8e48b19ff744cc9b478abba0ea61b1da49c02463
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M contrib/repoplot
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/05/54105/1

diff --git a/contrib/repoplot b/contrib/repoplot
index eda5f40..2c3c6ae 100755
--- a/contrib/repoplot
+++ b/contrib/repoplot
@@ -186,9 +186,12 @@
 
 
 def plot(stats, filename, size):
+    rows = 3
+    columns = 1
+
     pyplot.figure(figsize=size, dpi=300)
 
-    pyplot.subplot(311)
+    pyplot.subplot(rows, columns, 1)
     pyplot.title("lastCheck")
     pyplot.ylabel("lastCheck (seconds)")
     pyplot.xlabel("time")
@@ -203,7 +206,7 @@
     # non-operational.
     pyplot.axis([lastcheck.index[0], lastcheck.index[-1], 0, 330])
 
-    pyplot.subplot(312)
+    pyplot.subplot(rows, columns, 2)
     pyplot.title("read delay")
     pyplot.ylabel("delay (seconds)")
     pyplot.xlabel("time")
@@ -218,7 +221,7 @@
     # warning in engine log.
     pyplot.axis([lastcheck.index[0], lastcheck.index[-1], 0, 10])
 
-    pyplot.subplot(313)
+    pyplot.subplot(rows, columns, 3)
     pyplot.title("LVM commands")
     pyplot.ylabel("runtime (seconds)")
     pyplot.xlabel("time")


-- 
To view, visit https://gerrit.ovirt.org/54105
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e48b19ff744cc9b478abba0ea61b1da49c02463
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>


More information about the vdsm-patches mailing list