add axes in web view
[scilab.git] / scilab / node / static / scilab_setter.js
index 9c3363b..2744d8e 100644 (file)
@@ -6,7 +6,22 @@ function setParent(uid, parent) {
         $child.width($parent.width());
         $child.height($parent.height());
 
-        Plotly.newPlot($child.prop('id'), [{}], {}, {displayModeBar:false, showLink:false, scrollZoom:true});
+        var layout = {
+            xaxis: {
+                showgrid: false,
+                zeroline: false,
+                autotick: true,
+                showticklabels: false //for clean display
+            },
+            yaxis: {
+                showgrid: false,
+                zeroline: false,
+                autotick: true,
+                showticklabels: false //for clean display
+            }
+        };
+        
+        Plotly.newPlot($child.prop('id'), [{}], layout, {displayModeBar:false, showLink:false, scrollZoom:true});
     }
 
     if($parent.hasClass("GO_UI_FRAME")) {