adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.17k stars 229 forks source link

Grapher multiple columns plot #192

Open adamerose opened 2 years ago

adamerose commented 2 years ago
Originally posted by **gemGreg** January 31, 2022 In the old version of PandasGUI there was a way to plot multiple signals on one line plot. ![image](https://user-images.githubusercontent.com/7453447/151777966-afad982e-08a3-4a62-b623-edb8456558ce.png) Is there a way to do it in the newest version of PandasGUI? It seems like In the newest version you can drag/drop only one signal to X and Y: ![image](https://user-images.githubusercontent.com/7453447/151778169-80e10534-58e8-43b4-b1d7-af4bdf22e6cd.png)
blixtdevelopment commented 2 years ago

Yep I have the same problem on version 0.2.13. Seems like an important feature to be able to plot multiple columns in the same plot.

gemGreg commented 2 years ago

do we have any update on when this issue could be fixed?

michaelwills commented 2 years ago

One workaround available now is to use custom kwargs to override y with an array of columns. It isn't as easy perhaps but doable. So in @adamerose 's case, add y with a value of ['Australia New Cases', 'Brunei New Cases', ...].

peace712 commented 1 year ago

Below is what I think a better workaround until this gets fixed. My use case for PandasGUI is almost exclusively comparing and analyzing time series data. Being able to plot multiple columns is a "must have" feature, at least for line and scatter plot types. I was already making some changes to read couple more file formats, and made the below changes for the line and scatter plot types to get that feature back.

file -> jotly.py functions -> line and scatter original argument-> y: ColumnName = None, changed argument -> y: ColumnNameList= None,

Essentially, it changes the class of argument y from ColumnName to ColumnNameList

Edit: It may work for other plots types too but I didn't test.