From 0175458b82b34ec6a771aa77f2e46d6615564997 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 23 May 2018 14:29:20 -0400 Subject: update ds9 parsers --- ds9/doc/ref/command.html | 107 +++++++++++++++++++++++++-------- ds9/doc/ref/samp.html | 153 ++++++++++++++++++++++++++++++++++++----------- ds9/doc/ref/xpa.html | 139 ++++++++++++++++++++++++++++++++---------- ds9/library/colorbar.tcl | 5 +- ds9/library/grid.tcl | 66 ++++++++++++++++---- 5 files changed, 368 insertions(+), 102 deletions(-) diff --git a/ds9/doc/ref/command.html b/ds9/doc/ref/command.html index e6b0dfd..6053b2a 100644 --- a/ds9/doc/ref/command.html +++ b/ds9/doc/ref/command.html @@ -520,6 +520,7 @@ + [crosshair]
        [<ref>] [dec <col>]
@@ -633,6 +634,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -728,6 +730,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -823,6 +826,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -918,6 +922,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -968,8 +973,11 @@ [symbol shape circle|ellipse|box|text|point]
        [<ref>] + [symbol shape circle + point|box point|diamond point|cross + point|x point|arrow point|boxcircle point]
        [<ref>] [symbol add| [#] remove]
@@ -1071,6 +1079,7 @@ + [update]

        [<ref>] [x <col>]
@@ -1199,6 +1208,7 @@           [ticks]
          + [match]
          [lock [yes|no]]

@@ -1461,6 +1471,7 @@ + [match <coordsys>]
           [lock <coordsys>|none]

@@ -1618,6 +1629,7 @@ $ds9 -envi foo.hdr
$ds9 + -envi foo.hdr foo.bsq

exit
@@ -1776,13 +1788,16 @@       [grid yes|no]
      [grid color <color>]
      [grid width <value>]
-       [grid style 0|1]
+       [grid dash yes|no]
      [grid gap1 <value>]
-       [grid gap2 <value>]
-       [axes yes|no]
+       [grid gap2 + <value>]
+
      [grid gap3 + <value>]
+
      [axes yes|no]
      [axes color <color>]
      [axes width <value>]
-       [axes style 0|1]
+       [axes dash yes|no]
      [axes type interior|exterior]
      [axes origin lll|llu|lul|luu|ull|ulu|uul|uuu]
@@ -1791,11 +1806,11 @@       [tickmarks yes|no]
      [tickmarks color <color>]
      [tickmarks width <value>]
-       [tickmarks style 0|1]
+       [tickmarks dash yes|no]
      [border yes|no]
      [border color <color>]
      [border width <value>]
-       [border style 0|1]
+       [border dash yes|no]
      [numerics yes|no]
      [numerics font times|helvetica|courier]
@@ -1804,8 +1819,12 @@       [numerics fontslant roman|italic]
      [numerics color <color>]
      [numerics gap1 <value>]
-       [numerics gap2 <value>]
-       [numerics type interior|exterior]
+       [numerics gap2 + <value>]
+
      [numerics + gap3 <value>]
+
      [numerics type + interior|exterior]
      [numerics vertical yes|no]
      [title yes|no]
      [title text <text>]
@@ -1819,10 +1838,11 @@       [title color <color>]
      [labels yes|no]
      [labels text1 <text>]
-       [labels def1 yes|no]
-       [labels gap1 <value>]
-       [labels text2 <text>]
-       [labels def2 yes|no]
+
      [labels text2 + <text>]
+
      [labels def1 yes|no]
+
      [labels def2 yes|no]
+
      [labels gap1 <value>]
      [labels gap2 <value>]
      [labels font times|helvetica|courier]
@@ -1845,13 +1865,14 @@ $ds9 -grid grid yes
$ds9 -grid grid color red
$ds9 -grid grid width 2
- $ds9 -grid grid style 1
+ $ds9 -grid grid dash yes
$ds9 -grid grid gap1 10
- $ds9 -grid grid gap2 10
- $ds9 -grid axes yes
+
$ds9 -grid grid gap2 10
+
$ds9 -grid grid gap3 10
+
$ds9 -grid axes yes
$ds9 -grid axes color red
$ds9 -grid axes width 2
- $ds9 -grid axes style 1
+ $ds9 -grid axes dash yes
$ds9 -grid axes type exterior
$ds9 -grid axes origin lll
$ds9 -grid format1 d.2
@@ -1859,11 +1880,11 @@ $ds9 -grid tickmarks yes
$ds9 -grid tickmarks color red
$ds9 -grid tickmarks width 2
- $ds9 -grid tickmarks style 1
+ $ds9 -grid tickmarks dash yes
$ds9 -grid border yes
$ds9 -grid border color red
$ds9 -grid border width 2
- $ds9 -grid border style 1
+ $ds9 -grid border dash yes
$ds9 -grid numerics yes
$ds9 -grid numerics font courier
$ds9 -grid numerics fontsize 12
@@ -1871,8 +1892,9 @@ $ds9 -grid numerics fontslant italic
$ds9 -grid numerics color red
$ds9 -grid numerics gap1 10
- $ds9 -grid numerics gap2 10
- $ds9 -grid numerics type exterior
+
$ds9 -grid numerics gap2 10
+
$ds9 -grid numerics gap3 10
+
$ds9 -grid numerics type exterior
$ds9 -grid numerics vertical yes
$ds9 -grid title yes
$ds9 -grid title text {Hello World}
@@ -1885,11 +1907,11 @@ $ds9 -grid title color red
$ds9 -grid labels yes
$ds9 -grid labels text1 {Hello World}
- $ds9 -grid labels def1 yes
- $ds9 -grid labels gap1 10
- $ds9 -grid labels text2 {Hello World}
+
$ds9 -grid labels text2 {Hello World}
+
$ds9 -grid labels def1 yes
$ds9 -grid labels def2 yes
- $ds9 -grid labels gap2 10
+
$ds9 -grid labels gap1 10
+
$ds9 -grid labels gap2 10
$ds9 -grid labels font courier
$ds9 -grid labels fontsize 12
$ds9 -grid labels fontweight bold
@@ -2353,6 +2375,7 @@ + [pan]
            @@ -2491,6 +2514,7 @@ + [crosshair]
            @@ -2629,6 +2653,7 @@ + [open|close]
 
Example:
@@ -2870,6 +2895,7 @@ + [yes|open]
            [no|close]
@@ -2978,6 +3004,7 @@ + duplicate
   @@ -3048,6 +3075,7 @@ +    [<plotname>] stats
     
[<plotname>] @@ -3118,6 +3146,7 @@ + list
     
[<plotname>] @@ -3188,6 +3217,7 @@ + loadconfig <filename>
      [<plotname>] saveconfig <filename>
@@ -3265,6 +3295,7 @@ +    [<plotname>] print
      [<plotname>] print destination [printer|file]
@@ -3344,6 +3375,7 @@ + mode [pointer|zoom]

# configure graph
@@ -3450,6 +3482,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

      [<plotname>] @@ -3521,6 +3554,7 @@ + shape fill [yes|no]
      [<plotname>] @@ -3594,6 +3628,7 @@ +     [<plotname>] @@ -3663,6 +3698,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
   @@ -3734,6 +3770,7 @@ +    [<plotname>] @@ -3804,6 +3841,7 @@ + color <value>
    @@ -3875,6 +3913,7 @@ +   [<plotname>] @@ -3944,6 +3983,7 @@ + width <value>
  @@ -4015,6 +4055,7 @@ +     @@ -4085,6 +4126,7 @@ + [<plotname>] @@ -4154,6 +4196,7 @@ + dash [yes|no]
   @@ -4224,6 +4267,7 @@ +    [<plotname>] @@ -4294,6 +4338,7 @@ + error [yes|no]
  @@ -4364,6 +4409,7 @@ +     [<plotname>] @@ -4434,6 +4480,7 @@ + error color <value>
   @@ -4505,6 +4552,7 @@ +    [<plotname>] @@ -4575,6 +4623,7 @@ + error width <value>
    @@ -4646,6 +4695,7 @@ +   [<plotname>] @@ -4715,6 +4765,7 @@ + name <string>
# select current dataset
@@ -4828,6 +4879,7 @@ -precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -5229,6 +5281,7 @@ + <filename> [image|table|slice]

 
Example:
@@ -5471,6 +5524,7 @@ + [sigma <value>]
        @@ -5481,6 +5535,7 @@ + [sigmaminor <value>]
        @@ -5491,6 +5546,7 @@ + [angle <value>]
        @@ -5501,6 +5557,7 @@ + [match]
        [lock [yes|no]]
        @@ -5521,6 +5578,7 @@ + -smooth sigmaminor 2.0
$ds9 @@ -5531,6 +5589,7 @@ + -smooth angle 45
$ds9 -smooth match
diff --git a/ds9/doc/ref/samp.html b/ds9/doc/ref/samp.html index ad2c840..6ed07da 100644 --- a/ds9/doc/ref/samp.html +++ b/ds9/doc/ref/samp.html @@ -572,6 +572,7 @@ + [crosshair]

        [<ref>] [dec <col>]
@@ -683,6 +684,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -776,6 +778,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -869,6 +872,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -962,6 +966,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -1011,8 +1016,11 @@ [symbol shape circle|ellipse|box|text|point]
        [<ref>] + [symbol shape circle + point|box point|diamond point|cross + point|x point|arrow point|boxcircle point]
        [<ref>] [symbol add| [#] remove]
@@ -1112,6 +1120,7 @@ + [update]

        [<ref>] [x <col>]
@@ -1886,13 +1895,16 @@       [grid yes|no]
      [grid color <color>]
      [grid width <value>]
-       [grid style 0|1]
+       [grid dash yes|no]
      [grid gap1 <value>]
-       [grid gap2 <value>]
-       [axes yes|no]
+       [grid gap2 + <value>]
+
      [grid gap3 + <value>]
+
      [axes yes|no]
      [axes color <color>]
      [axes width <value>]
-       [axes style 0|1]
+       [axes dash yes|no]
      [axes type interior|exterior]
      [axes origin lll|llu|lul|luu|ull|ulu|uul|uuu]
@@ -1901,11 +1913,11 @@       [tickmarks yes|no]
      [tickmarks color <color>]
      [tickmarks width <value>]
-       [tickmarks style 0|1]
+       [tickmarks dash yes|no]
      [border yes|no]
      [border color <color>]
      [border width <value>]
-       [border style 0|1]
+       [border dash yes|no]
      [numerics yes|no]
      [numerics font times|helvetica|courier]
@@ -1914,8 +1926,12 @@       [numerics fontslant roman|italic]
      [numerics color <color>]
      [numerics gap1 <value>]
-       [numerics gap2 <value>]
-       [numerics type interior|exterior]
+       [numerics gap2 + <value>]
+
      [numerics + gap3 <value>]
+
      [numerics type + interior|exterior]
      [numerics vertical yes|no]
      [title yes|no]
      [title text <text>]
@@ -1929,11 +1945,13 @@       [title color <color>]
      [labels yes|no]
      [labels text1 <text>]
-       [labels def1 yes|no]
-       [labels gap1 <value>]
-       [labels text2 <text>]
+
      [labels text2 + <text>]
+
      [labels def1 yes|no]
      [labels def2 yes|no]
-       [labels gap2 <value>]
+
      [labels gap1 + <value>]
+
      [labels gap2 <value>]
      [labels font times|helvetica|courier]
      [labels fontsize <value>]
@@ -1955,13 +1973,14 @@ grid grid
grid grid color
grid grid width
- grid grid style
+ grid grid dash
grid grid gap1
- grid grid gap2
- grid axes
+
grid grid gap2
+
grid grid gap3
+
grid axes
grid axes color
grid axes width
- grid axes style
+ grid axes dash
grid axes type
grid axes origin
grid format1
@@ -1969,11 +1988,11 @@ grid tickmarks
grid tickmarks color
grid tickmarks width
- grid tickmarks style
+ grid tickmarks dash
grid border
grid border color
grid border width
- grid border style
+ grid border dash
grid numerics
grid numerics font
grid numerics fontsize
@@ -1981,8 +2000,9 @@ grid numerics fontslant
grid numerics color
grid numerics gap1
- grid numerics gap2
- grid numerics type
+
grid numerics gap2
+
grid numerics gap3
+
grid numerics type
grid numerics vertical
grid title
grid title text
@@ -1995,11 +2015,11 @@ grid title color
grid labels
grid labels text1
- grid labels def1
- grid labels gap1
- grid labels text2
+
grid labels text2
+
grid labels def1
grid labels def2
- grid labels gap2
+
grid labels gap1
+
grid labels gap2
grid labels font
grid labels fontsize
grid labels fontweight
@@ -2015,13 +2035,14 @@ grid grid yes
grid grid color red
grid grid width 2
- grid grid style 1
+ grid grid dash yes
grid grid gap1 10
- grid grid gap2 10
- grid axes yes
+
grid grid gap2 10
+
grid grid gap3 10
+
grid axes yes
grid axes color red
grid axes width 2
- grid axes style 1
+ grid axes dash yes
grid axes type exterior
grid axes origin lll
grid format1 d.2
@@ -2029,11 +2050,11 @@ grid tickmarks yes
grid tickmarks color red
grid tickmarks width 2
- grid tickmarks style 1
+ grid tickmarks dash yes
grid border yes
grid border color red
grid border width 2
- grid border style 1
+ grid border dash yes
grid numerics yes
grid numerics font courier
grid numerics fontsize 12
@@ -2041,8 +2062,9 @@ grid numerics fontslant italic
grid numerics color red
grid numerics gap1 10
- grid numerics gap2 10
- grid numerics type exterior
+
grid numerics gap2 10
+
grid numerics gap3 10
+
grid numerics type exterior
grid numerics vertical yes
grid title yes
grid title text {Hello World}
@@ -2055,11 +2077,11 @@ grid title color red
grid labels yes
grid labels text1 {Hello World}
- grid labels def1 yes
- grid labels gap1 10
- grid labels text2 {Hello World}
+
grid labels text2 {Hello World}
+
grid labels def1 yes
grid labels def2 yes
- grid labels gap2 10
+
grid labels gap1 10
+
grid labels gap2 10
grid labels font courier
grid labels fontsize 12
grid labels fontweight bold
@@ -2158,6 +2180,7 @@ + Macros for more information.

Syntax:
iexam []
@@ -2276,6 +2299,7 @@ +
quality (1-100)

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2788,6 +2812,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2868,6 +2893,7 @@ + duplicate
     @@ -2937,6 +2963,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -3005,6 +3032,7 @@ + list
    
[<plotname>] @@ -3073,6 +3101,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -3143,6 +3172,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3213,6 +3243,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3305,6 +3336,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

@@ -3392,6 +3424,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

     [<plotname>] @@ -3461,6 +3494,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3533,6 +3567,7 @@ + [<plotname>] @@ -3600,6 +3635,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3670,6 +3706,7 @@ + [<plotname>] @@ -3737,6 +3774,7 @@ + color <value>
     @@ -3807,6 +3845,7 @@ + [<plotname>] @@ -3874,6 +3913,7 @@ + width <value>
     @@ -3944,6 +3984,7 @@ + [<plotname>] @@ -4011,6 +4052,7 @@ + dash [yes|no]
     @@ -4080,6 +4122,7 @@ + [<plotname>] @@ -4147,6 +4190,7 @@ + error [yes|no]
     @@ -4216,6 +4260,7 @@ + [<plotname>] @@ -4283,6 +4328,7 @@ + error color <value>
     @@ -4353,6 +4399,7 @@ + [<plotname>] @@ -4420,6 +4467,7 @@ + color <value>
     @@ -4490,6 +4538,7 @@ + [<plotname>] @@ -4557,6 +4606,7 @@ + error width <value>
     @@ -4627,6 +4677,7 @@ + [<plotname>] @@ -4694,6 +4745,7 @@ + name <string>

@@ -4788,6 +4840,7 @@ + value = ds9.get(string cmd)
plot stats
@@ -4886,6 +4939,7 @@ + axis x auto
plot @@ -4950,6 +5004,7 @@ + axis x min
plot @@ -5014,6 +5069,7 @@ + axis x max
plot @@ -5078,6 +5134,7 @@ + axis x format
plot @@ -5142,6 +5199,7 @@ + legend
plot legend position
@@ -5214,6 +5272,7 @@ + font numbers size
plot @@ -5282,6 +5341,7 @@ + font numbers weight
plot @@ -5350,6 +5410,7 @@ + font numbers slant
plot @@ -5418,6 +5479,7 @@ + title
plot @@ -5486,6 +5548,7 @@ + title x
plot barmode
@@ -5586,6 +5649,7 @@ + dash
plot @@ -5654,6 +5718,7 @@ + error
plot @@ -5722,6 +5787,7 @@ + error color
plot @@ -5790,6 +5856,7 @@ + error width
plot @@ -5858,6 +5925,7 @@ + name
ds9.set(string @@ -5926,6 +5994,7 @@ + cmd)
plot show yes
plot shape circle
@@ -5969,6 +6038,7 @@ precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -6588,6 +6658,7 @@ + [crosshair]

        [<ref>] [export sb|tsv <filename>]
@@ -6698,6 +6769,7 @@ + [update]

 
Example:
@@ -6812,6 +6884,7 @@ + [sigma <value>]
       @@ -6821,6 +6894,7 @@ + [sigmaminor <value>]
       @@ -6831,6 +6905,7 @@ + [angle <value>]
       @@ -6841,6 +6916,7 @@ + [match]
       [lock [yes|no]]

       [open|close]
@@ -6870,6 +6946,7 @@ + sigma 2.0
smooth @@ -6880,6 +6957,7 @@ + sigmaminor 2.0
smooth @@ -6890,6 +6968,7 @@ + angle 45
smooth @@ -6900,6 +6979,7 @@ + open
smooth close
smooth match
@@ -7019,6 +7099,7 @@ +
compression method.

Syntax:
tiff [new|slice] [<filename>] [none|jpeg|packbits|deflate]
diff --git a/ds9/doc/ref/xpa.html b/ds9/doc/ref/xpa.html index 74fe914..8346501 100644 --- a/ds9/doc/ref/xpa.html +++ b/ds9/doc/ref/xpa.html @@ -210,6 +210,7 @@ + -p ds9 3d match

$xpaset -p ds9 3d lock yes
@@ -220,6 +221,7 @@ + -p ds9 3d open
$xpaset -p ds9 3d close
@@ -549,6 +551,7 @@ + [crosshair]

        [<ref>] [dec <col>]
@@ -664,6 +667,7 @@ + [match error <value> degrees|arcmin|arcsec]

        [<ref>] @@ -761,6 +765,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -858,6 +863,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -955,6 +961,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -1002,6 +1009,7 @@ [symbol shape circle|ellipse|box|text|point]
       
[<ref>] + [symbol shape circle point|box point|diamond point|cross point|x point|arrow point|boxcircle point]
@@ -1107,6 +1115,7 @@ + [update]

        [<ref>] [x <col>]
@@ -1692,6 +1701,7 @@ + -p ds9 export envi foo.hdr foo.bsq little

$xpaset -p ds9 export tiff foo.tiff jpeg
@@ -1867,13 +1877,16 @@       [grid yes|no]
      [grid color <color>]
      [grid width <value>]
-       [grid style 0|1]
+       [grid dash yes|no]
      [grid gap1 <value>]
-       [grid gap2 <value>]
-       [axes yes|no]
+       [grid gap2 + <value>]
+
      [grid gap3 + <value>]
+
      [axes yes|no]
      [axes color <color>]
      [axes width <value>]
-       [axes style 0|1]
+       [axes dash yes|no]
      [axes type interior|exterior]
      [axes origin lll|llu|lul|luu|ull|ulu|uul|uuu]
@@ -1882,11 +1895,11 @@       [tickmarks yes|no]
      [tickmarks color <color>]
      [tickmarks width <value>]
-       [tickmarks style 0|1]
+       [tickmarks dash yes|no]
      [border yes|no]
      [border color <color>]
      [border width <value>]
-       [border style 0|1]
+       [border dash yes|no]
      [numerics yes|no]
      [numerics font times|helvetica|courier]
@@ -1895,8 +1908,12 @@       [numerics fontslant roman|italic]
      [numerics color <color>]
      [numerics gap1 <value>]
-       [numerics gap2 <value>]
-       [numerics type interior|exterior]
+
      [numerics gap2 + <value>]
+
      [numerics + gap3 <value>]
+
      [numerics type + interior|exterior]
      [numerics vertical yes|no]
      [title yes|no]
      [title text <text>]
@@ -1909,13 +1926,15 @@       [title fontslant roman|italic]
      [title color <color>]
      [labels yes|no]
-       [labels text1 <text>]
-       [labels def1 yes|no]
-       [labels gap1 <value>]
-       [labels text2 <text>]
-       [labels def2 yes|no]
-       [labels gap2 <value>]
-       [labels font +
      [labels def1 yes|no]
+       [labels def2 yes|no]
+
      [labels text1 <text>]
+
      [labels text2 + <text>]
+
      [labels gap1 + <value>]
+
      [labels gap2 <value>]
+
      [labels font times|helvetica|courier]
      [labels fontsize <value>]
      [labels fontweight normal|bold]
@@ -1935,13 +1954,14 @@ $xpaget ds9 grid grid
$xpaget ds9 grid grid color
$xpaget ds9 grid grid width
- $xpaget ds9 grid grid style
+ $xpaget ds9 grid grid dash
$xpaget ds9 grid grid gap1
- $xpaget ds9 grid grid gap2
- $xpaget ds9 grid axes
+
$xpaget ds9 grid grid gap2
+
$xpaget ds9 grid grid gap3
+
$xpaget ds9 grid axes
$xpaget ds9 grid axes color
$xpaget ds9 grid axes width
- $xpaget ds9 grid axes style
+ $xpaget ds9 grid axes dash
$xpaget ds9 grid axes type
$xpaget ds9 grid axes origin
$xpaget ds9 grid format1
@@ -1949,11 +1969,11 @@ $xpaget ds9 grid tickmarks
$xpaget ds9 grid tickmarks color
$xpaget ds9 grid tickmarks width
- $xpaget ds9 grid tickmarks style
+ $xpaget ds9 grid tickmarks dash
$xpaget ds9 grid border
$xpaget ds9 grid border color
$xpaget ds9 grid border width
- $xpaget ds9 grid border style
+ $xpaget ds9 grid border dash
$xpaget ds9 grid numerics
$xpaget ds9 grid numerics font
$xpaget ds9 grid numerics fontsize
@@ -1961,8 +1981,9 @@ $xpaget ds9 grid numerics fontslant
$xpaget ds9 grid numerics color
$xpaget ds9 grid numerics gap1
- $xpaget ds9 grid numerics gap2
- $xpaget ds9 grid numerics type
+
$xpaget ds9 grid numerics gap2
+
$xpaget ds9 grid numerics gap3
+
$xpaget ds9 grid numerics type
$xpaget ds9 grid numerics vertical
$xpaget ds9 grid title
$xpaget ds9 grid title text
@@ -1994,13 +2015,14 @@ $xpaset -p ds9 grid grid yes
$xpaset -p ds9 grid grid color red
$xpaset -p ds9 grid grid width 2
- $xpaset -p ds9 grid grid style 1
+ $xpaset -p ds9 grid grid dash yes
$xpaset -p ds9 grid grid gap1 10
$xpaset -p ds9 grid grid gap2 10
- $xpaset -p ds9 grid axes yes
+
$xpaset -p ds9 grid grid gap3 10
+
$xpaset -p ds9 grid axes yes
$xpaset -p ds9 grid axes color red
$xpaset -p ds9 grid axes width 2
- $xpaset -p ds9 grid axes style 1
+ $xpaset -p ds9 grid axes dash yes
$xpaset -p ds9 grid axes type exterior
$xpaset -p ds9 grid axes origin lll
$xpaset -p ds9 grid format1 d.2
@@ -2008,11 +2030,11 @@ $xpaset -p ds9 grid tickmarks yes
$xpaset -p ds9 grid tickmarks color red
$xpaset -p ds9 grid tickmarks width 2
- $xpaset -p ds9 grid tickmarks style 1
+ $xpaset -p ds9 grid tickmarks dash yes
$xpaset -p ds9 grid border yes
$xpaset -p ds9 grid border color red
$xpaset -p ds9 grid border width 2
- $xpaset -p ds9 grid border style 1
+ $xpaset -p ds9 grid border dash yes
$xpaset -p ds9 grid numerics yes
$xpaset -p ds9 grid numerics font courier
$xpaset -p ds9 grid numerics fontsize 12
@@ -2020,8 +2042,9 @@ $xpaset -p ds9 grid numerics fontslant italic
$xpaset -p ds9 grid numerics color red
$xpaset -p ds9 grid numerics gap1 10
- $xpaset -p ds9 grid numerics gap2 10
- $xpaset -p ds9 grid numerics type exterior
+
$xpaset -p ds9 grid numerics gap2 10
+
$xpaset -p ds9 grid numerics gap3 10
+
$xpaset -p ds9 grid numerics type exterior
$xpaset -p ds9 grid numerics vertical yes
$xpaset -p ds9 grid title yes
$xpaset -p ds9 grid title text {Hello World}
@@ -2211,6 +2234,7 @@ +
quality (1-100)

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2698,6 +2722,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2779,6 +2804,7 @@ + duplicate
     @@ -2849,6 +2875,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -2918,6 +2945,7 @@ + list
    
[<plotname>] @@ -2987,6 +3015,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -3058,6 +3087,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3129,6 +3159,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3222,6 +3253,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

@@ -3302,6 +3334,7 @@ + barmode [normal|stacked|aligned|overlap]

# configure current dataset
@@ -3374,6 +3407,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

     [<plotname>] @@ -3444,6 +3478,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3517,6 +3552,7 @@ + [<plotname>] @@ -3585,6 +3621,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3656,6 +3693,7 @@ + [<plotname>] @@ -3724,6 +3762,7 @@ + color <value>
     @@ -3795,6 +3834,7 @@ + [<plotname>] @@ -3863,6 +3903,7 @@ + width <value>
     @@ -3934,6 +3975,7 @@ + [<plotname>] @@ -4002,6 +4044,7 @@ + dash [yes|no]
     @@ -4072,6 +4115,7 @@ + [<plotname>] @@ -4140,6 +4184,7 @@ + error [yes|no]
     @@ -4210,6 +4255,7 @@ + [<plotname>] @@ -4278,6 +4324,7 @@ + error color <value>
     @@ -4349,6 +4396,7 @@ + [<plotname>] @@ -4417,6 +4465,7 @@ + color <value>
     @@ -4488,6 +4537,7 @@ + [<plotname>] @@ -4556,6 +4606,7 @@ + error width <value>
     @@ -4627,6 +4678,7 @@ + [<plotname>] @@ -4695,6 +4747,7 @@ + name <string>

@@ -4826,6 +4879,7 @@ + ds9 plot axis x min
$xpaget @@ -4895,6 +4949,7 @@ + ds9 plot axis x max
$xpaget ds9 plot axis x format
$xpaget @@ -4961,6 +5016,7 @@ + ds9 plot legend
$xpaget ds9 plot legend position
@@ -5034,6 +5090,7 @@ + ds9 plot font numbers size
$xpaget @@ -5103,6 +5160,7 @@ + ds9 plot font numbers weight
$xpaget @@ -5172,6 +5230,7 @@ + ds9 plot font numbers slant
$xpaget @@ -5241,6 +5300,7 @@ + ds9 plot title
$xpaget @@ -5310,6 +5370,7 @@ + ds9 plot title x
$xpaget ds9 plot barmode
@@ -5408,6 +5469,7 @@ + ds9 plot dash
$xpaget @@ -5477,6 +5539,7 @@ + ds9 plot error
$xpaget @@ -5546,6 +5609,7 @@ + ds9 plot error color
$xpaget @@ -5616,6 +5680,7 @@ + ds9 plot error width
$xpaget @@ -5686,6 +5751,7 @@ + ds9 plot name
$xpaset @@ -5755,6 +5821,7 @@ + -p ds9 plot show yes
$xpaset -p ds9 plot shape circle
$xpaset -p ds9 plot shape fill no
@@ -5795,6 +5862,7 @@ precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -6289,6 +6357,7 @@ + method.

Syntax:
saveimage
[fits|eps|gif|tiff|jpeg|png] <filename>
@@ -6514,6 +6583,7 @@ + [sigma <value>]
       @@ -6524,6 +6594,7 @@ + [sigmaminor <value>]
       @@ -6534,6 +6605,7 @@ + [angle <value>]
    @@ -6544,6 +6616,7 @@ +    [match]
       [lock [yes|no]]

       [open|close]
@@ -6562,6 +6635,7 @@ + ds9 smooth sigmaminor
$xpaget ds9 smooth lock
@@ -6580,6 +6654,7 @@ + -p ds9 smooth sigma 2.0
$xpaset @@ -6590,6 +6665,7 @@ + -p ds9 smooth sigmaminor 2.0
$xpaset @@ -6600,6 +6676,7 @@ + -p ds9 smooth angle 45
$xpaset @@ -6610,6 +6687,7 @@ + -p ds9 smooth match
$xpaset -p ds9 smooth lock yes

$xpaset -p ds9 smooth open
@@ -6728,6 +6806,7 @@ +
compression method.

Syntax:
tiff [new|slice] [<filename>] [none|jpeg|packbits|deflate]
diff --git a/ds9/library/colorbar.tcl b/ds9/library/colorbar.tcl index 6e40275..a5ee821 100644 --- a/ds9/library/colorbar.tcl +++ b/ds9/library/colorbar.tcl @@ -1535,9 +1535,12 @@ proc ProcessSendColorbarCmd {proc id param} { } font {$proc $id "$colorbar(font)\n"} fontsize {$proc $id "$colorbar(font,size)\n"} - fontstyle - fontweight {$proc $id "$colorbar(font,weight)\n"} fontslant {$proc $id "$colorbar(font,slant)\n"} + fontstyle { + # backware compatibily + $proc $id "$colorbar(font,weight)\n" + } size {$proc $id "$colorbar(size)\n"} ticks {$proc $id "$colorbar(ticks)\n"} default {$proc $id [ToYesNo $view(colorbar)]} diff --git a/ds9/library/grid.tcl b/ds9/library/grid.tcl index 789421c..9816168 100644 --- a/ds9/library/grid.tcl +++ b/ds9/library/grid.tcl @@ -1198,7 +1198,11 @@ proc ProcessGridCmd {varname iname} { switch -- [string tolower [lindex $var $i]] { color {incr i; set grid(grid,color) [lindex $var $i]} width {incr i; set grid(grid,width) [lindex $var $i]} - style {incr i; set grid(grid,style) [lindex $var $i]} + dash {incr i; set grid(grid,style) [FromYesNo [lindex $var $i]]} + style { + # backward compatibility + incr i; set grid(grid,style) [lindex $var $i] + } gap1 {incr i; set grid(grid,gap1) [lindex $var $i]} gap2 {incr i; set grid(grid,gap2) [lindex $var $i]} gap3 {incr i; set grid(grid,gap3) [lindex $var $i]} @@ -1211,7 +1215,11 @@ proc ProcessGridCmd {varname iname} { switch -- [string tolower [lindex $var $i]] { color {incr i; set grid(axes,color) [lindex $var $i]} width {incr i; set grid(axes,width) [lindex $var $i]} - style {incr i; set grid(axes,style) [lindex $var $i]} + dash {incr i; set grid(axes,style) [FromYesNo [lindex $var $i]]} + style { + # backward compatibility + incr i; set grid(axes,style) [lindex $var $i] + } type {incr i; set grid(axes,type) [lindex $var $i]} origin {incr i; set grid(axes,origin) [lindex $var $i]} default {set grid(axes) [FromYesNo [lindex $var $i]]} @@ -1233,7 +1241,11 @@ proc ProcessGridCmd {varname iname} { switch -- [string tolower [lindex $var $i]] { color {incr i; set grid(tick,color) [lindex $var $i]} width {incr i; set grid(tick,width) [lindex $var $i]} - style {incr i; set grid(tick,style) [lindex $var $i]} + dash {incr i; set grid(tick,style) [FromYesNo [lindex $var $i]]} + style { + # backward compatibility + incr i; set grid(tick,style) [lindex $var $i] + } default {set grid(tick) [FromYesNo [lindex $var $i]]} } GridUpdateCurrent @@ -1243,7 +1255,11 @@ proc ProcessGridCmd {varname iname} { switch -- [string tolower [lindex $var $i]] { color {incr i; set grid(border,color) [lindex $var $i]} width {incr i; set grid(border,width) [lindex $var $i]} - style {incr i; set grid(border,style) [lindex $var $i]} + dash {incr i; set grid(border,style) [FromYesNo [lindex $var $i]]} + style { + # backward compatibility + incr i; set grid(border,style) [lindex $var $i] + } default {set grid(border) [FromYesNo [lindex $var $i]]} } GridUpdateCurrent @@ -1258,6 +1274,7 @@ proc ProcessGridCmd {varname iname} { fontweight {incr i; set grid(numlab,weight) [lindex $var $i]} fontslant {incr i; set grid(numlab,slant) [lindex $var $i]} fontstyle { + # backward compatibility incr i switch [lindex $var $i] { normal { @@ -1295,6 +1312,7 @@ proc ProcessGridCmd {varname iname} { fontweight {incr i; set grid(title,weight) [lindex $var $i]} fontslant {incr i; set grid(title,slant) [lindex $var $i]} fontstyle { + # backward compatibility incr i switch [lindex $var $i] { normal { @@ -1332,6 +1350,7 @@ proc ProcessGridCmd {varname iname} { fontweight {incr i; set grid(textlab,weight) [lindex $var $i]} fontslant {incr i; set grid(textlab,slant) [lindex $var $i]} fontstyle { + # backward compatibility incr i switch [lindex $var $i] { normal { @@ -1459,7 +1478,11 @@ proc ProcessSendGridCmd {proc id param} { switch -- [lindex $param 1] { color {$proc $id "$grid(grid,color)\n"} width {$proc $id "$grid(grid,width)\n"} - style {$proc $id "$grid(grid,style)\n"} + dash {$proc $id [ToYesNo $grid(grid,style)]} + style { + # backward compatible + $proc $id "$grid(grid,style)\n" + } gap1 {$proc $id "$grid(grid,gap1)\n"} gap2 {$proc $id "$grid(grid,gap2)\n"} gap3 {$proc $id "$grid(grid,gap3)\n"} @@ -1471,7 +1494,11 @@ proc ProcessSendGridCmd {proc id param} { switch -- [lindex $param 1] { color {$proc $id "$grid(axes,color)\n"} width {$proc $id "$grid(axes,width)\n"} - style {$proc $id "$grid(axes,style)\n"} + dash {$proc $id [ToYesNo $grid(axes,style)]} + style { + # backward compatible + $proc $id "$grid(axes,style)\n" + } type {$proc $id "$grid(axes,type)\n"} origin {$proc $id "$grid(axes,origin)\n"} default {$proc $id [ToYesNo $grid(axes)]} @@ -1487,7 +1514,11 @@ proc ProcessSendGridCmd {proc id param} { switch -- [lindex $param 1] { color {$proc $id "$grid(tick,color)\n"} width {$proc $id "$grid(tick,width)\n"} - style {$proc $id "$grid(tick,style)\n"} + dash {$proc $id [ToYesNo $grid(tick,style)]} + style { + # backward compatible + $proc $id "$grid(tick,style)\n" + } default {$proc $id [ToYesNo $grid(tick)]} } } @@ -1496,7 +1527,11 @@ proc ProcessSendGridCmd {proc id param} { switch -- [lindex $param 1] { color {$proc $id "$grid(border,color)\n"} width {$proc $id "$grid(border,width)\n"} - style {$proc $id "$grid(border,style)\n"} + dash {$proc $id [ToYesNo $grid(border,style)]} + style { + # backward compatible + $proc $id "$grid(border,style)\n" + } default {$proc $id [ToYesNo $grid(border)]} } } @@ -1507,9 +1542,12 @@ proc ProcessSendGridCmd {proc id param} { switch -- [lindex $param 1] { font {$proc $id "$grid(numlab,font)\n"} fontsize {$proc $id "$grid(numlab,size)\n"} - fontstyle - fontweight {$proc $id "$grid(numlab,weight)\n"} fontslant {$proc $id "$grid(numlab,slant)\n"} + fontstyle { + # backward compatible + $proc $id "$grid(numlab,weight)\n" + } color {$proc $id "$grid(numlab,color)\n"} gap1 {$proc $id "$grid(numlab,gap1)\n"} gap2 {$proc $id "$grid(numlab,gap2)\n"} @@ -1527,9 +1565,12 @@ proc ProcessSendGridCmd {proc id param} { gap {$proc $id "$grid(title,gap)\n"} font {$proc $id "$grid(title,font)\n"} fontsize {$proc $id "$grid(title,size)\n"} - fontstyle - fontweight {$proc $id "$grid(title,weight)\n"} fontslant {$proc $id "$grid(title,slant)\n"} + fontstyle { + # backward compatible + $proc $id "$grid(title,weight)\n" + } color {$proc $id "$grid(title,color)\n"} default {$proc $id [ToYesNo $grid(title)]} } @@ -1547,9 +1588,12 @@ proc ProcessSendGridCmd {proc id param} { gap2 {$proc $id "$grid(textlab,gap2)\n"} font {$proc $id "$grid(textlab,font)\n"} fontsize {$proc $id "$grid(textlab,size)\n"} - fontstyle - fontweight {$proc $id "$grid(textlab,weight)\n"} fontslant {$proc $id "$grid(textlab,slant)\n"} + fontstyle { + # backward compatible + $proc $id "$grid(textlab,weight)\n" + } color {$proc $id "$grid(textlab,color)\n"} default {$proc $id [ToYesNo $grid(textlab)]} } -- cgit v0.12