PandasGUI icon indicating copy to clipboard operation
PandasGUI copied to clipboard

Grapher multiple columns plot

Open adamerose opened this issue 3 years ago • 4 comments

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 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

adamerose avatar Jan 31 '22 20:01 adamerose

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.

blixtdevelopment avatar May 03 '22 06:05 blixtdevelopment

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

gemGreg avatar Jul 07 '22 07:07 gemGreg

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', ...].

michaelwills avatar Aug 17 '22 07:08 michaelwills

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.

peace712 avatar Jan 01 '23 22:01 peace712