Changeset 1213
- Timestamp:
- 08/29/06 20:20:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Release2.1.0b/python/asapplotter.py
r1175 r1213 2 2 from asap import NUM 3 3 import matplotlib.axes 4 import sre 4 5 5 6 class asapplotter: … … 153 154 Parameters: 154 155 stacking: tell the plotter which variable to plot 155 as line colo r overlays (default 'pol')156 as line colour overlays (default 'pol') 156 157 panelling: tell the plotter which variable to plot 157 158 across multiple panels (default 'scan' … … 329 330 return 330 331 331 def set_colors(self, col ormap):332 """ 333 Set the colo rs to be used. The plotter will cycle through334 these colo rs when lines are overlaid (stacking mode).335 Parameters: 336 col ormap: a list of colour names332 def set_colors(self, colmap): 333 """ 334 Set the colours to be used. The plotter will cycle through 335 these colours when lines are overlaid (stacking mode). 336 Parameters: 337 colmap: a list of colour names 337 338 Example: 338 339 plotter.set_colors("red green blue") … … 341 342 # and 'V' will be 'red' again. 342 343 """ 343 if isinstance(colormap,str): 344 colormap = colormap.split() 345 self._plotter.palette(0,colormap=colormap) 346 if self._data: self.plot(self._data) 344 if isinstance(colmap,str): 345 colmap = colmap.split() 346 self._plotter.palette(0, colormap=colmap) 347 if self._data: self.plot(self._data) 348 349 # alias for english speakers 350 set_colours = set_colors 347 351 348 352 def set_histogram(self, hist=True, linewidth=None):
Note:
See TracChangeset
for help on using the changeset viewer.