diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-07-21 19:24:44 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-07-21 19:24:44 (GMT) |
commit | dbf954dbfeeafc4423ac2951c6afe5a02881e502 (patch) | |
tree | 1a1aacf464c4eeb33c74af0b58ba298435c3e0fe /ds9/parsers/plotparser.tac | |
parent | 0056598d0f225c387d99ccf94932fa247c144a2b (diff) | |
download | blt-dbf954dbfeeafc4423ac2951c6afe5a02881e502.zip blt-dbf954dbfeeafc4423ac2951c6afe5a02881e502.tar.gz blt-dbf954dbfeeafc4423ac2951c6afe5a02881e502.tar.bz2 |
support multiple graphs per plot
Diffstat (limited to 'ds9/parsers/plotparser.tac')
-rw-r--r-- | ds9/parsers/plotparser.tac | 8 |
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 |