summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-07-30 20:59:27 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-07-30 20:59:27 (GMT)
commita4133e2d82866f24b6c8e7a4ee79f69ccdd46b12 (patch)
treed8ca241fc511d55b4d87306afaf93dd6ba5042a5 /ds9
parent471370e7d75f452f5dd5c0a87adc2e73b0001493 (diff)
downloadblt-a4133e2d82866f24b6c8e7a4ee79f69ccdd46b12.zip
blt-a4133e2d82866f24b6c8e7a4ee79f69ccdd46b12.tar.gz
blt-a4133e2d82866f24b6c8e7a4ee79f69ccdd46b12.tar.bz2
support multiple graphs per plot
Diffstat (limited to 'ds9')
-rw-r--r--ds9/parsers/plotparser.tac6
-rw-r--r--ds9/parsers/plotparser.tcl6
2 files changed, 6 insertions, 6 deletions
diff --git a/ds9/parsers/plotparser.tac b/ds9/parsers/plotparser.tac
index 61b7765..93064de 100644
--- a/ds9/parsers/plotparser.tac
+++ b/ds9/parsers/plotparser.tac
@@ -298,10 +298,10 @@ graph : {set _ line}
| SCATTER_ {set _ scatter}
;
-select: DATASET_ INT_ {ProcessCmdCVAR graph,ds,current $2}
- | GRAPH_ INT_ {ProcessCmdCVAR graph,current $2}
+select: DATASET_ INT_ {ProcessCmdCVAR graph,ds,current $2 PlotCurrentDataSet}
+ | GRAPH_ INT_ {ProcessCmdCVAR graph,current $2 PlotCurrentGraph}
# backward compatibility
- | INT_ {ProcessCmdCVAR graph,ds,current $1}
+ | INT_ {ProcessCmdCVAR graph,ds,current $1 PlotCurrentDataSet}
;
delete: GRAPH_ {ProcessCmdCVAR0 PlotDeleteGraphCurrent}
diff --git a/ds9/parsers/plotparser.tcl b/ds9/parsers/plotparser.tcl
index 31f28be..5051af6 100644
--- a/ds9/parsers/plotparser.tcl
+++ b/ds9/parsers/plotparser.tcl
@@ -5719,9 +5719,9 @@ proc plot::yyparse {} {
107 { set _ line }
108 { set _ bar }
109 { set _ scatter }
- 110 { ProcessCmdCVAR graph,ds,current $2 }
- 111 { ProcessCmdCVAR graph,current $2 }
- 112 { ProcessCmdCVAR graph,ds,current $1 }
+ 110 { ProcessCmdCVAR graph,ds,current $2 PlotCurrentDataSet }
+ 111 { ProcessCmdCVAR graph,current $2 PlotCurrentGraph }
+ 112 { ProcessCmdCVAR graph,ds,current $1 PlotCurrentDataSet }
113 { ProcessCmdCVAR0 PlotDeleteGraphCurrent }
114 { ProcessCmdCVAR0 PlotDeleteDataSetCurrent }
115 { PlotCmdExport [ExtToFormat $1] $1 }