Changes between Version 8 and Version 9 of rp_xml_ele_drawing


Ignore:
Timestamp:
10/08/12 15:04:15 (21 months ago)
Author:
gah
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rp_xml_ele_drawing

    v8 v9  
    222222           and also define the directions of the axes.  We still compute the overall bounding box.  In the example below, the bounding box goes from -1,1 in the upper-left corner to 1,-1 in the lower right. 
    223223 
    224  '''<aspect>''':: 
    225       Scales coordinate system so that pixels may not be square.  A coordinate system like the one above implies a square drawing area, since x and y both go from -1 to 1.  But if you set the aspect to 2:1, you'll get something twice as wide as it is tall.  This effectively says that x goes from  -1 to 1 in a certain distance, but y goes from -1 to 1 in half that screen distance.  Default is whatever aspect is defined by the coordinates.  If x goes 0-3 and y goes 0-1, then the drawing (without any other aspect ratio) would be 3x wide and 1x tall.  The aspect ratio could be used to force it to be square instead by setting "1 1" instead.  In that case, x goes 0-3 over the width, and y goes 0-1 over the same screen distance  along the height. 
     224 '''<height>''':: 
     225      Sets the width of the drawing area.  The default is 400 pixels.  If you set the width to zero, the contents of the drawing will indicate the width of the drawing. 
     226 '''<width>''':: 
     227      Sets the height of the drawing area. The default is 300 pixels.  If you set the width to zero, the contents of the drawing will indicate the height of the drawing area. 
     228 
    226229 
    227230== Substitutions ==