diff options
author | gebele <gebele@in-silico.ch> | 2019-07-16 14:20:09 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-07-16 14:20:09 +0000 |
commit | e0985405e2fdb0fe8c4740ccb256d3ac2d1fd5be (patch) | |
tree | d34b7cb4cb4531c6f0df4da9e46c8a5001baed1a /views | |
parent | ae4ca6dbe44f4dbe55aa9fcdc664307e4758adb2 (diff) |
use png format for plots avoiding css overwrite from svg objects and better browser performance
Diffstat (limited to 'views')
-rw-r--r-- | views/model_details.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/model_details.haml b/views/model_details.haml index 8877de5..2d7a693 100644 --- a/views/model_details.haml +++ b/views/model_details.haml @@ -132,7 +132,7 @@ %div.row %div.collapse.plot.mx-auto{:id=>"pplot#{model.id}#{idx}"} - = embedded_svg(cv.probability_plot(format: "svg")) + %img{:src=>"/#{cv.id}.png", :alt=>"#{cv.id}.png"} / regression - if model.regression? @@ -180,7 +180,7 @@ Correlation plot %div.row %div.collapse.plot.mx-auto{:id=>"cplot#{model.id}#{idx}"} - = embedded_svg(cv.correlation_plot(format: "svg")) + %img{:src=>"/#{cv.id}.png", :alt=>"#{cv.id}.png"} - unless idx == crossvalidations.size-1 %hr |