Commit e196e991 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

rename x2, y2 -> x-offset, y-offset

parent 6730a68b
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ foreach(unit_test_path ${unit_test_files})
      COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${unit_test_name})
endforeach()

file(GLOB spec_test_files "tests/spec/**/test_*.ptx" "examples/**/*.ptx")
file(GLOB spec_test_files "tests/spec/**/test_*.ptx")
foreach(spec_test_path ${spec_test_files})
  get_filename_component(spec_test_name ${spec_test_path} NAME_WE)
  get_filename_component(spec_test_srcdir ${spec_test_path} DIRECTORY)
@@ -101,3 +101,13 @@ foreach(spec_test_path ${spec_test_files})
      COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tests/spec/test_runner.sh ${CMAKE_CURRENT_BINARY_DIR}/plotfx ${spec_test_path} ${CMAKE_CURRENT_BINARY_DIR}/${spec_test_name}.svg ${spec_test_srcdir}/${spec_test_name}.svg)
endforeach()

file(GLOB example_test_files "examples/**/*.ptx")
foreach(example_test_path ${example_test_files})
  get_filename_component(example_test_name ${example_test_path} NAME_WE)
  get_filename_component(example_test_srcdir ${example_test_path} DIRECTORY)
  add_test(
      NAME test_example_${example_test_name}_svg
      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
      COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tests/spec/test_runner.sh ${CMAKE_CURRENT_BINARY_DIR}/plotfx ${example_test_path} ${CMAKE_CURRENT_BINARY_DIR}/${example_test_name}.svg ${example_test_srcdir}/${example_test_name}.svg)
endforeach()
+2 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ plot {

  layer {
    type: area;
    y1: y;
    y2: z;
    y: y;
    y-offset: z;
  }
}
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ plot {
    type: area;
    x: x;
    group: series;
    y1: y;
    y2: z;
    y: y;
    y-offset: z;
  }

  layer {
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ plot {

  layer {
    type: bars;
    x1: var2;
    x2: var3;
    x: var2;
    x-offset: var3;
    direction: horizontal;
  }

+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ plot {

  layer {
    type: bars;
    y1: var2;
    y2: var3;
    y: var2;
    y-offset: var3;
  }

}
Loading