summaryrefslogtreecommitdiffstats
path: root/src/plot.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-04-28 14:07:05 -0300
committermongo <andmarti@gmail.com>2017-04-28 14:07:05 -0300
commit0e1bbd875ce0003296c6704395f4586fff2f9899 (patch)
treee2641e76197dbfb8ec527ba16267d6975c8a7e04 /src/plot.c
parente0c0eaf6f455b4d3df4bbc18b1d9e4e2b6ef207b (diff)
added bar chart
Diffstat (limited to 'src/plot.c')
-rw-r--r--src/plot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plot.c b/src/plot.c
index e8ae180..b0f69bd 100644
--- a/src/plot.c
+++ b/src/plot.c
@@ -14,7 +14,7 @@ int plotedit(wchar_t * s) {
char command[BUFFERSIZE];
if (! wcscmp(s, L"line") || ! wcscmp(s, L"scatter") ||
- ! wcscmp(s, L"pie")) {
+ ! wcscmp(s, L"pie") || ! wcscmp(s, L"bar")) {
char buffer[PATHLEN];
char path_out[PATHLEN];
char type[BUFFERSIZE];
@@ -70,7 +70,7 @@ int plot(char * s, int r, int c, int rf, int cf) {
sprintf(command, "gnuplot -e \"filename='%s'\"", datafile);
if (! strcmp(s, "line") || ! strcmp(s, "scatter") ||
- ! strcmp(s, "pie")) {
+ ! strcmp(s, "pie") || ! strcmp(s, "bar")) {
sprintf(buffer, "plot%s", s);
if (! plugin_exists(buffer, strlen(buffer), buffer1)) {
sc_error("could not load default plotline file");