Skip to content

Enhancement of scatplot in fdsplotlib.py #15787

@mcgratta

Description

@mcgratta

Referring to this block of code in fdsplotlib.py

        # --- Now filter for plotting & statistics ---
        in_range = (
            (Measured_Values >= Plot_Min) & (Measured_Values <= Plot_Max) &
            (Predicted_Values >= Plot_Min) & (Predicted_Values <= Plot_Max)
        )
        positive = (Measured_Values > 0) & (Predicted_Values > 0)
        mask = in_range & positive
        Measured_Values  = Measured_Values[mask]
        Predicted_Values = Predicted_Values[mask]

is it possible to save the Measured_Values and Predicted_Values in a csv file along with the row from the dataplot input file for each point? I'd like to have a record of the unfiltered points with which we make the scatter plot for each quantity, and the where the points came from.

All the info is available at this point in the code except for the row number, which is called csv_rownum during the parsing of the dataplot inputs. So basically, can csv_rownum be saved along with the measured and predicted values.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions