- Timestamp:
- 10/10/13 13:43:31 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/plotter2.py
r2830 r2860 93 93 def set_range(self, xmin, xmax, ymin, ymax, vpid=None): 94 94 """\ 95 set 2D range of area to be displayed in aviewport.95 set 2D range to be displayed in the specified viewport. 96 96 by default, the display range is set automatically. 97 97 … … 109 109 def set_xrange(self, xmin, xmax, vpid=None): 110 110 """\ 111 set x range of area to be displayed in aviewport.111 set x range to be displayed in the specified viewport. 112 112 by default, the display range is set automatically. 113 113 … … 123 123 def set_yrange(self, ymin, ymax, vpid=None): 124 124 """\ 125 set y range of area to be displayed in aviewport.125 set y range to be displayed in the specified viewport. 126 126 by default, the display range is set automatically. 127 127 … … 137 137 def get_xrange(self, vpid=None): 138 138 """\ 139 returns x range of display area of the specified viewport in140 a shape of (xmin, xmax).139 returns x range of displayed region of the specified viewport 140 as a list of [xmin, xmax]. 141 141 142 142 Parameter: … … 149 149 def get_yrange(self, vpid=None): 150 150 """\ 151 returns y range of display area of the specified viewport in152 a shape of (ymin, ymax).151 returns y range of displayed region in the specified viewport 152 as a list of [ymin, ymax]. 153 153 154 154 Parameter: … … 161 161 def set_autorange(self, vpid=None): 162 162 """\ 163 set 2D range of display area of the specified viewport to be 164 automatic depending on the given data. 165 the x range will be the exact range of the x values of data, 166 whereas y range has a margin of 10% of the range of y values of data. 163 set the 2-Dimensional range of displayed area of the specified 164 viewport to automatically enclose the given data. 165 the x range will be from the minimum up to the maximum value 166 of the given x values, whereas y range has margins of 10% of 167 the y value range both at the top and the bottom sides. 167 168 168 169 Parameter: … … 175 176 def set_xautorange(self, vpid=None): 176 177 """\ 177 set x range of display area of the specified viewport to be 178 automatic depending on the given data. 179 the x range will be the exact range of the x values of data, 178 set x range of displayed area of the specified viewport to 179 automatically enclose the given data with no margins. 180 180 181 181 Parameter: … … 188 188 def set_yautorange(self, vpid=None): 189 189 """\ 190 set y range of display area of the specified viewport to be191 automatic depending on the given data.192 the y range has a margin of 10% of the range of y values of data.190 set y range of displayed area of the specified viewport to 191 automatically enclose the given data with margins of 10% of 192 the y value range both at the top and the bottom sides. 193 193 194 194 Parameter: … … 341 341 342 342 Parameters: 343 color: line color specified by color name. available colors 344 can be listed via list_colornames(). 345 width: line width. default is 1. 346 style: line style. available styles can be listed via 347 list_linestyles(). 348 vpid: viewport id. when not given, the last viewport 349 will be the target. 350 dataid: dataset id. when not given, the last dataset used. 343 color: line color specified by color name. available colors 344 can be listed via list_colornames(). 345 width: line width. default is 1. 346 style: line style. available styles can be listed via 347 list_linestyles(). 348 vpid: viewport id. when not given, the last viewport 349 will be the target of operation. 350 dataid: dataset id. when not given, the last dataset for the 351 specified viewport is the target. 351 352 """ 352 353 if width is None: width = 1 … … 477 478 default is the center of x axis. 478 479 posy: y position of label string. 479 vpid: 480 480 vpid: viewport id. when not given, the last viewport 481 will be the target. 481 482 """ 482 483 if style is None: style = "" … … 642 643 """ 643 644 style = fstyle.strip().lower() 644 if style == "solid": idx = 1 645 if style == "outline": idx = 2 646 if style == "hatched": idx = 3 647 if style == "crosshatched": idx = 4 645 if style == "solid": idx = 1 646 if style == "dashed": idx = 2 647 if style == "dash-dotted": idx = 3 648 if style == "dotted": idx = 4 649 if style == "dash-dot-dot-dotted": idx = 5 648 650 649 651 return idx -
trunk/src/Plotter2.cpp
r2839 r2860 347 347 348 348 int Plotter2::getCurrentViewportId() { 349 return currentViewportId;349 return currentViewportId; 350 350 } 351 351
Note:
See TracChangeset
for help on using the changeset viewer.