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

update the examples to the new API

parent 9ffedf4f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -79,18 +79,9 @@ message(STATUS "Config Options: text_enable_bidi=${FVIZ_TEXT_ENABLE_BIDI}")
# -----------------------------------------------------------------------------
file(GLOB source_files "src/*.cc" "src/**/*.cc" "src/elements/**/*.cc" )
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/cli.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/bars.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/rectangles.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/points.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/areas.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/labels.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/errorbars.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot/vectors.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/legend/item.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/environment.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/layout/box.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/plot.cc")
list(REMOVE_ITEM source_files "${CMAKE_SOURCE_DIR}/src/arrows.cc")
add_library(clip OBJECT ${source_files})
set_property(TARGET clip PROPERTY POSITION_INDEPENDENT_CODE 1)
set(FVIZ_LIB_LDFLAGS ${CAIRO_LIBRARIES} ${FREETYPE_LIBRARIES} ${HARFBUZZ_LIBRARIES} ${HARFBUZZ_ICU_LIBRARIES} ${PNG_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${FRIBIDI_LIBRARIES} ${fmt_LIBRARY})
+2 −2
Original line number Diff line number Diff line
(set height 480px)
(set width 1200px)
(set-height 480px)
(set-width 1200px)

(plot
    axes (bottom top)
+2 −2
Original line number Diff line number Diff line
(set width 1000px)
(set height 400px)
(set-width 1000px)
(set-height 400px)

(plot
    axes (left bottom)
+3 −3
Original line number Diff line number Diff line
(set width 2048px)
(set height 512px)
(set dpi 240)
(set-width 2048px)
(set-height 512px)
(set-dpi 240)

(plot
    axes (right bottom left)
+4 −4
Original line number Diff line number Diff line
(set width 2048px)
(set height 512px)
(set dpi 240)
(set-width 2048px)
(set-height 512px)
(set-dpi 240)

(set font "Comic Sans MS")
(default font "Comic Sans MS")

(chart/linechart
    data-x (csv "test/testdata/measurement.csv" time)
Loading