The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Reporting extension graph sizing."

haddockhaddock Member Posts: 849 Maven
edited June 2019 in Help
Hi,

I'm trying to make pdf reports with embedded plots, and I'm having trouble with the image width and height parameters. They seem to be at least inverse, the bigger the number, the smaller the plot! Here's some XML with three plots of data to show the point.

<process version="5.1.013">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.1.013" expanded="true" name="Process">
    <process expanded="true" height="415" width="819">
      <operator activated="true" class="generate_data" compatibility="5.1.013" expanded="true" height="60" name="Generate Data" width="90" x="45" y="30"/>
      <operator activated="true" class="generate_id" compatibility="5.1.013" expanded="true" height="76" name="Generate ID" width="90" x="179" y="30"/>
      <operator activated="true" class="reporting:generate_report" compatibility="5.1.000" expanded="true" height="76" name="Generate Report" width="90" x="313" y="30">
        <parameter key="report_name" value="blob"/>
        <parameter key="pdf_output_file" value="C:\Documents and Settings\Administrator.KNOWLEDG-P6715Y\My Documents\blob.pdf"/>
        <parameter key="pdf_template_file" value="C:\RapidMiner_Vega\no file selected"/>
        <parameter key="image_template_file" value="C:\Documents and Settings\Administrator.KNOWLEDG-P6715Y\My Documents\KnowledgeGrinders.com\comp006.gif"/>
        <parameter key="image_alignment" value="1"/>
        <parameter key="section_one_font" value="courier"/>
        <parameter key="section_two_font" value="courier"/>
        <parameter key="section_three_font" value="courier"/>
        <parameter key="section_four_font" value="courier"/>
        <parameter key="section_five_font" value="courier"/>
        <parameter key="text_content_font" value="courier"/>
      </operator>
      <operator activated="true" class="reporting:add_pagebreak" compatibility="5.1.000" expanded="true" height="76" name="Add Pagebreak" width="90" x="447" y="30"/>
      <operator activated="true" class="reporting:report" compatibility="5.1.000" expanded="true" height="60" name="800x600" width="90" x="45" y="165">
        <parameter key="report_item_header" value="800x600"/>
        <parameter key="specified" value="true"/>
        <parameter key="reportable_type" value="Data Table"/>
        <parameter key="renderer_name" value="Plot View"/>
        <list key="parameters">
          <parameter key="plotter" value="Series Multiple"/>
          <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
          <parameter key="scatter_jitter_amount" value="0"/>
          <parameter key="scatter_rotate_labels" value="false"/>
          <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_multiple_jitter_amount" value="0"/>
          <parameter key="scatter_multiple_rotate_labels" value="false"/>
          <parameter key="scatter_matrix_jitter_amount" value="0"/>
          <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
          <parameter key="bubble_axis_y_axis_log_scale" value="false"/>
          <parameter key="bubble_rotate_labels" value="false"/>
          <parameter key="parallel_rotate_labels" value="false"/>
          <parameter key="parallel_local_normalization" value="false"/>
          <parameter key="deviation_rotate_labels" value="false"/>
          <parameter key="deviation_local_normalization" value="false"/>
          <parameter key="series_rotate_labels" value="false"/>
          <parameter key="series_multiple_axis_index_dimension" value="id"/>
          <parameter key="series_multiple_plot_columns" value="att1,att2,att3"/>
          <parameter key="series_multiple_rotate_labels" value="false"/>
          <parameter key="som_jitter_amount" value="0"/>
          <parameter key="block_axis_x_axis_log_scale" value="false"/>
          <parameter key="block_axis_y_axis_log_scale" value="false"/>
          <parameter key="block_jitter_amount" value="0"/>
          <parameter key="block_rotate_labels" value="false"/>
          <parameter key="pie_absolute_values" value="false"/>
          <parameter key="pie_aggregation" value="none"/>
          <parameter key="pie_use_distinct" value="false"/>
          <parameter key="pie_explosion_amount" value="0"/>
          <parameter key="pie_3d_absolute_values" value="false"/>
          <parameter key="pie_3d_aggregation" value="none"/>
          <parameter key="pie_3d_use_distinct" value="false"/>
          <parameter key="ring_absolute_values" value="false"/>
          <parameter key="ring_aggregation" value="none"/>
          <parameter key="ring_use_distinct" value="false"/>
          <parameter key="ring_explosion_amount" value="0"/>
          <parameter key="bars_absolute_values" value="false"/>
          <parameter key="bars_rotate_labels" value="false"/>
          <parameter key="bars_aggregation" value="none"/>
          <parameter key="bars_use_distinct" value="false"/>
          <parameter key="bars_orientation" value="vertical"/>
          <parameter key="bars_stacked_absolute_values" value="false"/>
          <parameter key="bars_stacked_rotate_labels" value="false"/>
          <parameter key="bars_stacked_aggregation" value="none"/>
          <parameter key="bars_stacked_use_distinct" value="false"/>
          <parameter key="bars_stacked_orientation" value="vertical"/>
          <parameter key="pareto_rotate_labels" value="false"/>
          <parameter key="pareto_sorting_direction" value="Descending Keys"/>
          <parameter key="pareto_show_bar_labels" value="true"/>
          <parameter key="pareto_show_cumulative_labels" value="false"/>
          <parameter key="distribution_rotate_labels" value="false"/>
          <parameter key="histogram_absolute_values" value="false"/>
          <parameter key="histogram_rotate_labels" value="false"/>
          <parameter key="histogram_log_scale" value="false"/>
          <parameter key="histogram_number_of_bins" value="40"/>
          <parameter key="histogram_opaqueness" value="100"/>
          <parameter key="histogram_color_absolute_values" value="false"/>
          <parameter key="histogram_color_rotate_labels" value="false"/>
          <parameter key="histogram_color_log_scale" value="false"/>
          <parameter key="histogram_color_number_of_bins" value="40"/>
          <parameter key="histogram_color_opaqueness" value="100"/>
        </list>
      </operator>
      <operator activated="true" class="reporting:add_pagebreak" compatibility="5.1.000" expanded="true" height="76" name="Add Pagebreak (2)" width="90" x="179" y="165"/>
      <operator activated="true" class="reporting:report" compatibility="5.1.000" expanded="true" height="60" name="8000x6000" width="90" x="313" y="165">
        <parameter key="report_item_header" value="8000x6000"/>
        <parameter key="specified" value="true"/>
        <parameter key="reportable_type" value="Data Table"/>
        <parameter key="renderer_name" value="Plot View"/>
        <list key="parameters">
          <parameter key="plotter" value="Series Multiple"/>
          <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
          <parameter key="scatter_jitter_amount" value="0"/>
          <parameter key="scatter_rotate_labels" value="false"/>
          <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_multiple_jitter_amount" value="0"/>
          <parameter key="scatter_multiple_rotate_labels" value="false"/>
          <parameter key="scatter_matrix_jitter_amount" value="0"/>
          <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
          <parameter key="bubble_axis_y_axis_log_scale" value="false"/>
          <parameter key="bubble_rotate_labels" value="false"/>
          <parameter key="parallel_rotate_labels" value="false"/>
          <parameter key="parallel_local_normalization" value="false"/>
          <parameter key="deviation_rotate_labels" value="false"/>
          <parameter key="deviation_local_normalization" value="false"/>
          <parameter key="series_rotate_labels" value="false"/>
          <parameter key="series_multiple_axis_index_dimension" value="id"/>
          <parameter key="series_multiple_plot_columns" value="att1,att2,att3"/>
          <parameter key="series_multiple_rotate_labels" value="false"/>
          <parameter key="som_jitter_amount" value="0"/>
          <parameter key="block_axis_x_axis_log_scale" value="false"/>
          <parameter key="block_axis_y_axis_log_scale" value="false"/>
          <parameter key="block_jitter_amount" value="0"/>
          <parameter key="block_rotate_labels" value="false"/>
          <parameter key="pie_absolute_values" value="false"/>
          <parameter key="pie_aggregation" value="none"/>
          <parameter key="pie_use_distinct" value="false"/>
          <parameter key="pie_explosion_amount" value="0"/>
          <parameter key="pie_3d_absolute_values" value="false"/>
          <parameter key="pie_3d_aggregation" value="none"/>
          <parameter key="pie_3d_use_distinct" value="false"/>
          <parameter key="ring_absolute_values" value="false"/>
          <parameter key="ring_aggregation" value="none"/>
          <parameter key="ring_use_distinct" value="false"/>
          <parameter key="ring_explosion_amount" value="0"/>
          <parameter key="bars_absolute_values" value="false"/>
          <parameter key="bars_rotate_labels" value="false"/>
          <parameter key="bars_aggregation" value="none"/>
          <parameter key="bars_use_distinct" value="false"/>
          <parameter key="bars_orientation" value="vertical"/>
          <parameter key="bars_stacked_absolute_values" value="false"/>
          <parameter key="bars_stacked_rotate_labels" value="false"/>
          <parameter key="bars_stacked_aggregation" value="none"/>
          <parameter key="bars_stacked_use_distinct" value="false"/>
          <parameter key="bars_stacked_orientation" value="vertical"/>
          <parameter key="pareto_rotate_labels" value="false"/>
          <parameter key="pareto_sorting_direction" value="Descending Keys"/>
          <parameter key="pareto_show_bar_labels" value="true"/>
          <parameter key="pareto_show_cumulative_labels" value="false"/>
          <parameter key="distribution_rotate_labels" value="false"/>
          <parameter key="histogram_absolute_values" value="false"/>
          <parameter key="histogram_rotate_labels" value="false"/>
          <parameter key="histogram_log_scale" value="false"/>
          <parameter key="histogram_number_of_bins" value="40"/>
          <parameter key="histogram_opaqueness" value="100"/>
          <parameter key="histogram_color_absolute_values" value="false"/>
          <parameter key="histogram_color_rotate_labels" value="false"/>
          <parameter key="histogram_color_log_scale" value="false"/>
          <parameter key="histogram_color_number_of_bins" value="40"/>
          <parameter key="histogram_color_opaqueness" value="100"/>
        </list>
        <parameter key="image_width" value="8000"/>
        <parameter key="image_height" value="6000"/>
      </operator>
      <operator activated="true" class="reporting:add_pagebreak" compatibility="5.1.000" expanded="true" height="76" name="Add Pagebreak (3)" width="90" x="447" y="165"/>
      <operator activated="true" class="reporting:report" compatibility="5.1.000" expanded="true" height="60" name="80x60" width="90" x="651" y="153">
        <parameter key="report_item_header" value="80x60"/>
        <parameter key="specified" value="true"/>
        <parameter key="reportable_type" value="Data Table"/>
        <parameter key="renderer_name" value="Plot View"/>
        <list key="parameters">
          <parameter key="plotter" value="Series Multiple"/>
          <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
          <parameter key="scatter_jitter_amount" value="0"/>
          <parameter key="scatter_rotate_labels" value="false"/>
          <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
          <parameter key="scatter_multiple_jitter_amount" value="0"/>
          <parameter key="scatter_multiple_rotate_labels" value="false"/>
          <parameter key="scatter_matrix_jitter_amount" value="0"/>
          <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
          <parameter key="bubble_axis_y_axis_log_scale" value="false"/>
          <parameter key="bubble_rotate_labels" value="false"/>
          <parameter key="parallel_rotate_labels" value="false"/>
          <parameter key="parallel_local_normalization" value="false"/>
          <parameter key="deviation_rotate_labels" value="false"/>
          <parameter key="deviation_local_normalization" value="false"/>
          <parameter key="series_rotate_labels" value="false"/>
          <parameter key="series_multiple_axis_index_dimension" value="id"/>
          <parameter key="series_multiple_plot_columns" value="att1,att2,att3"/>
          <parameter key="series_multiple_rotate_labels" value="false"/>
          <parameter key="som_jitter_amount" value="0"/>
          <parameter key="block_axis_x_axis_log_scale" value="false"/>
          <parameter key="block_axis_y_axis_log_scale" value="false"/>
          <parameter key="block_jitter_amount" value="0"/>
          <parameter key="block_rotate_labels" value="false"/>
          <parameter key="pie_absolute_values" value="false"/>
          <parameter key="pie_aggregation" value="none"/>
          <parameter key="pie_use_distinct" value="false"/>
          <parameter key="pie_explosion_amount" value="0"/>
          <parameter key="pie_3d_absolute_values" value="false"/>
          <parameter key="pie_3d_aggregation" value="none"/>
          <parameter key="pie_3d_use_distinct" value="false"/>
          <parameter key="ring_absolute_values" value="false"/>
          <parameter key="ring_aggregation" value="none"/>
          <parameter key="ring_use_distinct" value="false"/>
          <parameter key="ring_explosion_amount" value="0"/>
          <parameter key="bars_absolute_values" value="false"/>
          <parameter key="bars_rotate_labels" value="false"/>
          <parameter key="bars_aggregation" value="none"/>
          <parameter key="bars_use_distinct" value="false"/>
          <parameter key="bars_orientation" value="vertical"/>
          <parameter key="bars_stacked_absolute_values" value="false"/>
          <parameter key="bars_stacked_rotate_labels" value="false"/>
          <parameter key="bars_stacked_aggregation" value="none"/>
          <parameter key="bars_stacked_use_distinct" value="false"/>
          <parameter key="bars_stacked_orientation" value="vertical"/>
          <parameter key="pareto_rotate_labels" value="false"/>
          <parameter key="pareto_sorting_direction" value="Descending Keys"/>
          <parameter key="pareto_show_bar_labels" value="true"/>
          <parameter key="pareto_show_cumulative_labels" value="false"/>
          <parameter key="distribution_rotate_labels" value="false"/>
          <parameter key="histogram_absolute_values" value="false"/>
          <parameter key="histogram_rotate_labels" value="false"/>
          <parameter key="histogram_log_scale" value="false"/>
          <parameter key="histogram_number_of_bins" value="40"/>
          <parameter key="histogram_opaqueness" value="100"/>
          <parameter key="histogram_color_absolute_values" value="false"/>
          <parameter key="histogram_color_rotate_labels" value="false"/>
          <parameter key="histogram_color_log_scale" value="false"/>
          <parameter key="histogram_color_number_of_bins" value="40"/>
          <parameter key="histogram_color_opaqueness" value="100"/>
        </list>
        <parameter key="image_width" value="80"/>
        <parameter key="image_height" value="60"/>
      </operator>
      <connect from_op="Generate Data" from_port="output" to_op="Generate ID" to_port="example set input"/>
      <connect from_op="Generate ID" from_port="example set output" to_op="Generate Report" to_port="through 1"/>
      <connect from_op="Generate Report" from_port="through 1" to_op="Add Pagebreak" to_port="through 1"/>
      <connect from_op="Add Pagebreak" from_port="through 1" to_op="800x600" to_port="reportable in"/>
      <connect from_op="800x600" from_port="reportable out" to_op="Add Pagebreak (2)" to_port="through 1"/>
      <connect from_op="Add Pagebreak (2)" from_port="through 1" to_op="8000x6000" to_port="reportable in"/>
      <connect from_op="8000x6000" from_port="reportable out" to_op="Add Pagebreak (3)" to_port="through 1"/>
      <connect from_op="Add Pagebreak (3)" from_port="through 1" to_op="80x60" to_port="reportable in"/>
      <connect from_op="80x60" from_port="reportable out" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>
Has anyone experience of this extension, and in particular this problem?


PS The SVN Vega build properties are still pointing to 5.1, hence the odd version number.

Tagged:

Answers

  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Hi Haddock,

    if you use the HTML output everything works fine. But there seems to be a problem with the PDF Report Stream positioning.
    I will have a look into it.

    Best,
    Nils
  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Hi Haddock,

    I have found the problem but unfortunately at the moment there is no time to fix it.
    I have filed a bug report and we definitely will have have a look at the operator.

    Best,
    Nils
  • haddockhaddock Member Posts: 849 Maven
    Hi Nils,

    Thanks for that, as a workaround I'm using an HTML to PDF converter from http://www.winnovative-software.com which does a pretty good job, so there's no real hurry.

    Thanks again.
Sign In or Register to comment.