Commit af7a038b authored by Daria Zenkova's avatar Daria Zenkova

images loading from tmp folder in project morpheus.js, but it must be somehow...

images loading from tmp folder in project morpheus.js, but it must be somehow changed. the good thing is there are labels
parent 0f74975f
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -325,7 +325,7 @@ morpheus.PcaPlotTool.prototype = {
console.log(rowIndices);
console.log(colorBy, sizeBy, pc1, pc2, label);
arguments = {
var arguments = {
es : expressionSet,
c1 : pc1,
c2 : pc2
......@@ -350,11 +350,19 @@ morpheus.PcaPlotTool.prototype = {
console.log(arguments);
var req = ocpu.call("pcaPlot", arguments, function (session) {
var img = $('<img />', {src : session.getLoc() + 'graphics/1/png', style : "width:720px;height:540px"});
_this.$chart.prepend(img);
session.getObject(function (data) {
var location = data.split("\"")[1].split('/');
var exactLoc = "tmp/" + location[location.length - 1];
console.log(exactLoc);
var img = $('<img />', {src : exactLoc, style : "width:720px;height:540px"});
_this.$chart.prepend(img);
});
/*var img = $('<img />', {src : session.getLoc() + 'graphics/1/png', style : "width:720px;height:540px"});*/
});
req.fail(function () {
alert("failed to create pcaPlot");
alert(req.responseText);
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment