BCDA-APS / mdaviz

Data visualization for mda
https://bcda-aps.github.io/mdaviz/
Other
3 stars 0 forks source link

Track the filePath together with the field selection #77

Closed rodolakis closed 7 months ago

rodolakis commented 7 months ago

Otherwise have a dynamic table view selection means the graph might in some cases not keep the selection from the other files (not current table view)

rodolakis commented 7 months ago

We could have it tracked an another element in the self.line2D dictionary:

        self.line2D[label] = {
            "line_obj": plot_obj[0],
            "x_data": args[0],
            "y_data": args[1],
            "offset": 0,  # default offset
            "factor": 1,  # default factor
            "row": row,
            "path": self.file() # if it exist, otherwise get it from the parent
        }

Not sure about where to display it. Maybe under the QComboBox as a QLabel similar to the one I just added to the fields table view here: d1594ae

Image