summaryrefslogtreecommitdiff
path: root/report/report_content.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-05-24 16:14:37 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-24 16:14:37 +0200
commit1c2ed2e04d5cbd1842e646e6429bcfdc0b1372dd (patch)
tree8a650344ad68343f43ad2968750ca4df7b670ace /report/report_content.rb
parent2317a75d3e91a6a03992a8f19d6559323146a256 (diff)
rewrite: adjust to new prediction dataset format from lazar, read confidence from ambit algorithms
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-xreport/report_content.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/report/report_content.rb b/report/report_content.rb
index d60f700..755147d 100755
--- a/report/report_content.rb
+++ b/report/report_content.rb
@@ -287,12 +287,9 @@ class Reports::ReportContent
section_bar = @xml_report.add_section(@current_section, section_title)
@xml_report.add_paragraph(section_bar, section_text) if section_text
-
- plot_file_name = "bar_plot"+@tmp_file_count.to_s+".png"
- @tmp_file_count += 1
- plot_file_path = add_tmp_file(plot_file_name)
- Reports::PlotFactory.create_bar_plot(plot_file_path, validation_set, title_attribute, value_attributes )
- @xml_report.add_imagefigure(section_bar, image_title, plot_file_name, "PNG", 100, image_caption)
+ plot_bar = add_tmp_file("bar_plot", "svg")
+ Reports::PlotFactory.create_bar_plot(plot_bar[:path], validation_set, title_attribute, value_attributes )
+ @xml_report.add_imagefigure(section_bar, image_title, plot_bar[:name], "PNG", 100, image_caption)
end
private