Skip to content

Ideal Data Format for "Size" Data to Use Histogram Plot #20112

Discussion options

You must be logged in to vote

I sympathize with your troubles. I tried something very simple...convert your itemsXXX.csv files to a simple .curve file. That works but the histogram plot is grayed out for curves (and I can't explain why that is). So, I instead pivoted to create a .xyz file instead. That works.

Here is script to produce a .xyz file from one of your .csv files...

#!/bin/bash

# Path to the input file
input_file=$1

# Check if the file exists
if [ ! -f "$input_file" ]; then
    echo "Error: File does not exist."
    exit 1
fi

# Read lines from the file
i=0
echo "x y z items"
while IFS= read -r line
do
    if [[ $i -eq 0 ]]; then
        ((i++))
        continue
    fi
    echo $i $i $i $line
    ((i++))
…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@markcmiller86
Comment options

@samwyss
Comment options

Answer selected by samwyss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants