plot_transformer

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

internal/plot_transformer

Responsibility

  • Transforms simulation data into a format suitable for plotting.
  • Provides functions for converting data structures into plot data.

Scope

  • Data transformation functions.
  • Plot data structure definitions.

Test Suite Overview

  • Tests should cover data transformation functions and ensure that the output is in the correct format.

Decisions & Potential Gotchas

  • Data transformation logic may need to be optimized for performance.
  • Output format should be well-defined and documented.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformForPlot

func TransformForPlot(headers []string, rows [][]string, source, xAxis, yAxis, zAxis string) ([]map[string]interface{}, map[string]interface{}, error)

TransformForPlot extracts x/y/z data and plot layout for plotting (e.g., Plotly) from headers and rows. If source == "events", x/y/z are string slices; otherwise, float64 slices.

func TransformRowsToFloat64

func TransformRowsToFloat64(rows [][]string) [][]float64

TransformRowsToFloat64 converts [][]string data to [][]float64 for plotting, setting invalid entries to zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL