summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/plotparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/plotparser.tac')
-rw-r--r--ds9/parsers/plotparser.tac8
1 files changed, 7 insertions, 1 deletions
diff --git a/ds9/parsers/plotparser.tac b/ds9/parsers/plotparser.tac
index 7a3b26f..28a80d5 100644
--- a/ds9/parsers/plotparser.tac
+++ b/ds9/parsers/plotparser.tac
@@ -233,7 +233,7 @@ dim : XY_ {set _ xy}
plotCmd : LOAD_ load
| SAVE_ STRING_ {PlotCmdSave $2}
- | ADD_ GRAPH_ {ProcessCmdCVAR0 PlotAddGraph}
+ | ADD_ GRAPH_ graph {ProcessCmdCVAR0 PlotAddGraph $3}
| DELETE_ delete
# xpa/samp only
| DATA_ dim {PlotCmdData $2}
@@ -289,6 +289,12 @@ plotCmd : LOAD_ load
| VIEW_ oldView
;
+graph : {set _ line}
+ | LINE_ {set _ line}
+ | BAR_ {set _ bar}
+ | SCATTER_ {set _ scatter}
+ ;
+
select: DATASET_ INT_ {ProcessCmdCVAR graph,ds,current $2}
| GRAPH_ INT_ {ProcessCmdCVAR graph,current $2}
# backward compatibility