Page 1 of 1

Plot of text values

Posted: Wed May 02, 2012 3:42 am
by apreden
It is possible to plot a curve that is composed not by numerical values, but by text values? Example, I have a CSV file like this:

Date Color
----------------------------------
01/05/2012 00:01:00 GREEN
01/05/2012 00:02:00 GREEN
01/05/2012 00:03:00 GREEN
01/05/2012 00:04:00 YELLOW
01/05/2012 00:05:00 RED
01/05/2012 00:06:00 RED

and I want to obtain this plot:

Code: Select all

      __   RED
    _|     YELLOW
___|       GREEN
Is this possible? If not, this will be a very useful extension, other plotting software have this option.

Posted: Wed May 02, 2012 8:00 am
by DPlotAdmin
Not possible, sorry. At least not directly. You could substitute numbers for your colors and then manually place labels for the colors, but I understand that's more trouble than you want.

Posted: Wed May 09, 2012 9:49 am
by apreden
Thanks for your answer. Any possibility to see this function implemented? Basically what would be needed is that DPlot does automatically what you said, i.e. to substitute integer numbers to the text values (1 fo the first text value found, 2 for the second, and so on), then make a standard plot and place the text values as labels on the Y axis

Posted: Wed May 09, 2012 4:46 pm
by DPlotAdmin
There's no good way to do this within DPlot, because you have to start with numbers. I can probably put together a file import plugin that does what you want.