Plot of text values

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
apreden
Posts: 2
Joined: Wed May 02, 2012 2:50 am

Plot of text values

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
apreden
Posts: 2
Joined: Wed May 02, 2012 2:50 am

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Post Reply