summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/plotparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-04-05 18:22:27 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-04-05 18:22:27 (GMT)
commit91183bb25977d84b6ed93e1a83335aef1e6fca54 (patch)
tree5f16a3e2ef869f8b0ab7b21dbe8978ad97a729eb /ds9/parsers/plotparser.tac
parentbd67da7a0b0ba5122df26953c2f37ddbf30aca56 (diff)
downloadblt-91183bb25977d84b6ed93e1a83335aef1e6fca54.zip
blt-91183bb25977d84b6ed93e1a83335aef1e6fca54.tar.gz
blt-91183bb25977d84b6ed93e1a83335aef1e6fca54.tar.bz2
add ds9 plot parser
Diffstat (limited to 'ds9/parsers/plotparser.tac')
-rw-r--r--ds9/parsers/plotparser.tac27
1 files changed, 15 insertions, 12 deletions
diff --git a/ds9/parsers/plotparser.tac b/ds9/parsers/plotparser.tac
index 22fb44d..98874dd 100644
--- a/ds9/parsers/plotparser.tac
+++ b/ds9/parsers/plotparser.tac
@@ -217,8 +217,9 @@ plotCmd : DATA_ dim {PlotCmdData $2}
| LIST_ yesno {PlotCmdSet list $2 PlotList}
| LOADCONFIG_ STRING_ {PlotCmdLoadConfig $2}
| SAVECONFIG_ STRING_ {PlotCmdSaveConfig $2}
- | PAGE_ pagesetup
| PAGESETUP_ pagesetup
+ # backward compatibility
+ | PAGE_ pagesetup
| PRINT_ print
| CLOSE_ {global cvarname; PlotDestroy $cvarname}
@@ -235,6 +236,7 @@ plotCmd : DATA_ dim {PlotCmdData $2}
| FILL_ yesno {PlotCmdUpdateElement fill $2}
| FILLCOLOR_ STRING_ {PlotCmdUpdateElement fill,color $2}
| ERROR_ errorr
+ # backward compatibility
| ERRORBAR_ errorr
| NAME_ STRING_ {PlotCmdUpdateElement name $2}
| SHAPE_ shape
@@ -243,8 +245,9 @@ plotCmd : DATA_ dim {PlotCmdData $2}
| WIDTH_ INT_ {PlotCmdUpdateElement width $2}
| DASH_ yesno {PlotCmdUpdateElement dash $2}
- | DATASET_ INT_ {PlotCmdSelect $2}
| SELECT_ INT_ {PlotCmdSelect $2}
+ # backward compatibility
+ | DATASET_ INT_ {PlotCmdSelect $2}
# backward compatibility
| GRAPH_ oldGraph
@@ -328,12 +331,14 @@ fontt : fontType FONT_ font {PlotCmdUpdateGraph "$1,family" $3}
;
fontType : TITLE_ {set _ graph,title}
- | AXESTITLE_ {set _ axis,title}
| LABELS_ {set _ axis,title}
- | AXESNUMBERS_ {set _ axis,numbers}
+ # backward compatibility
+ | AXESTITLE_ {set _ axis,title}
| NUMBERS_ {set _ axis,numbers}
- | LEGEND_ {set _ legend,font}
- | LEGENDTITLE_ {set _ legend,title}
+ # backward compatibility
+ | AXESNUMBERS_ {set _ axis,numbers}
+ | LEGEND_ {set _ legend,font; puts a}
+ | LEGENDTITLE_ {set _ legend,title; puts b}
;
title : STRING_ {PlotCmdUpdateGraph graph,title $1}
@@ -379,9 +384,10 @@ shapes : CIRCLE_ {set _ circle}
| PLUS_ {set _ plus}
| SPLUS_ {set _ splus}
| SCROSS_ {set _ scross}
- | CROSS_ {set _ scross}
| TRIANGLE_ {set _ triangle}
| ARROW_ {set _ arrow}
+ # backward compatibility
+ | CROSS_ {set _ scross}
;
relief : FLAT_ {set _ flat}
@@ -453,11 +459,8 @@ oldView : DISCRETE_ yesno {PlotCmdUpdateElement show $2}
| LINE_ yesno {PlotCmdUpdateElement show $2; PlotCmdUpdateElement smooth linear}
| STEP_ yesno {PlotCmdUpdateElement show $2; PlotCmdUpdateElement smooth step}
| QUADRATIC_ yesno {PlotCmdUpdateElement show $2; PlotCmdUpdateElement smooth quadratic}
- | ERROR_ oldViewError
- | ERRORBAR_ oldViewError
- ;
-
-oldViewError : yesno {PlotCmdUpdateElement error $1}
+ | ERROR_ yesno {PlotCmdUpdateElement error $2}
+ | ERRORBAR_ yesno {PlotCmdUpdateElement error $2}
;
%%