development:plotting
                Differences
This shows you the differences between two versions of the page.
| development:plotting [2025/10/30] – created hayati | development:plotting [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTRANS~~ | ||
| + | {{indexmenu_n> | ||
| + | |||
| + | ====== Plotting ====== | ||
| + | |||
| + | It's quite difficult - practically impossible - to perceive data from rows and columns with numerical data. This holds true for complex (scientific) data; but also for much simpler data, e.g. temperature records over time. Graphical plots allow fast perception. That makes plots very important - also for debugging while development. | ||
| + | |||
| + | ===== Plot Types ===== | ||
| + | |||
| + | There are many plot types, you can select from. See https:// | ||
| + | |||
| + | ===== Terminal / Command Line ===== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | Usually, comma seperated value (CSV) files are used as input, see [[devop: | ||
| + | But it's also possible to plot from binary data files. | ||
| + | |||
| + | ===== C++ ===== | ||
| + | |||
| + | Following plotting libraries might be used for creating (debug) plot files. | ||
| + | |||
| + | First some meta results, which already give a good overview: | ||
| + | |||
| + |   * https:// | ||
| + |   * https:// | ||
| + |   * https:// | ||
| + | |||
| + | Here some (additional) links: | ||
| + | |||
| + | * sciplot | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | * Matplot++ | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | * VTK | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | * PLplot | ||
| + |     * https:// | ||
| + |   * https:// | ||
| + |   * https:// | ||
| + | * Matplotlib-Cpp - requires python | ||
| + |     * https:// | ||
| + | * Immediate Mode Plotting (implot) | ||
| + |     * https:// | ||
| + |     * Dear ImGui: https:// | ||
| + | |||
| + | ===== Python ===== | ||
| + | |||
| + | A python script/ | ||
| + | |||
| + | However, C++ developers might use python when compiling their code as python module with bindings, e.g. with [[https:// | ||
| + | |||
| + | In python, there are several plot libraries available: | ||
| + | |||
| + | * Matplotlib | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | * PyQtGraph - builds on Qt | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | * seaborn | ||
| + |     * https:// | ||
| + |     * https:// | ||
| + | |||
| + | i really like colored heatmaps: | ||
| + | |||
| + |   * https:// | ||
| + |   * https:// | ||
| + |   * https:// | ||
| + |   * https:// | ||
| + | |||
| + | ===== Colormaps ===== | ||
| + | |||
| + | Colormaps are used for visualizing or mapping mostly linear or grayscale data. IMHO, '' | ||
| + | |||
| + | From technical point of view, '' | ||
| + | |||
| + | Other colormaps like '' | ||
| + | |||
| + | Here an interesting video on this topic: https:// | ||
| + | |||
| + | In SDR and signal processing, such colormaps are used to visualize the power (or energy) in one single pixel to allow [[https:// | ||
| + | |||
| + | ==== Cyclic colormaps ==== | ||
| + | |||
| + | Circular data, e.g. phase values, should be treated special - as -180° equals +180°. //Cyclic// colormaps like '' | ||
| + | |||
| + | These colormaps are ideally viewed on circle like here: https:// | ||
| + | |||
| + | ==== Other links ==== | ||
| + | |||
| + |   * https:// | ||
| + |   * https:// | ||
