From 219301a85b55fd78840892e75ec7c47a4b7626e5 Mon Sep 17 00:00:00 2001
From: David Hudson <david@few.io>
Date: Fri, 2 Sep 2016 02:32:42 +0900
Subject: [PATCH] [Frontend] Add export plot buttons

---
 platform/features/plot/res/templates/plot.html | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/platform/features/plot/res/templates/plot.html b/platform/features/plot/res/templates/plot.html
index 6dc3cd71b9..c4b5321226 100644
--- a/platform/features/plot/res/templates/plot.html
+++ b/platform/features/plot/res/templates/plot.html
@@ -21,6 +21,21 @@
 -->
 <span ng-controller="PlotController as plot"
       class="abs holder holder-plot">
+    <a class="s-button t-export icon-download labeled"
+       ng-click="exportPDF()"
+       title="Export This View's Data">
+    Export as PDF
+    </a>
+    <a class="s-button t-export icon-download labeled"
+           ng-click="exportPNG()"
+           title="Export This View's Data">
+    Export as PNG
+    </a>
+    <a class="s-button t-export icon-download labeled"
+           ng-click="exportJPG()"
+           title="Export This View's Data">
+    Export as JPG
+    </a>
     <div class="gl-plot"
          ng-style="{ height: 100 / plot.getSubPlots().length + '%'}"
          ng-repeat="subplot in plot.getSubPlots()">