vis/lineplots/
mg_sparkdichotomous.pro
Creates a dichotomous sparkline as a PNG image file.
Other file information
- Todo:
maybe this should be a function that returns an image array instead of directly creating the PNG; show example; add POSITION keyword and make it just do regular output in direct graphics as well (maybe using a FILENAME keyword to create a file)
Routines
top mg_sparkdichotomous
mg_sparkdichotomous, filename, data [, ysize=integer] [, color=bytarr(3) or index] [, background=bytarr(3) or index]
Create a dichotomous sparkline as a PNG image file.
Parameters
- filename in required type=string
filename of PNG file to write
- data in required type=lonarr
values can be -1, 0, or +1
Keywords
- ysize in optional type=integer default=12
ysize in pixels of the output image
- color in optional type=bytarr(3) or index default=[0, 0, 0] or 0
color of the plot
- background in optional type=bytarr(3) or index default=[255, 255, 255] or 255
background color for the plot
File attributes
Modification date: | Wed May 14 15:07:15 2014 |
Lines: | 39 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.