Changeset 929 for trunk/lib/Graph.cc
- Timestamp:
- Dec 2, 2009, 9:02:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Graph.cc
r918 r929 39 39 { 40 40 legend_.reserve(20); 41 // we use colo ur map 0 position 0 for background colour41 // we use color map 0 position 0 for background color 42 42 pls_.scolbga(255,255,255,0); 43 43 pls_.init(); … … 62 62 63 63 64 void Graph::current_colo ur(const legend_data& legend)64 void Graph::current_color(const legend_data& legend) 65 65 { 66 // we use colo ur map 0 position 1 for current colour66 // we use color map 0 position 1 for current color 67 67 #ifdef HAVE_PLPLOT 68 68 pls_.scol0a(1,legend.r,legend.g,legend.b,1.0); … … 71 71 72 72 73 void Graph::current_colo ur(unsigned char r, unsigned char g, unsigned char b)73 void Graph::current_color(unsigned char r, unsigned char g, unsigned char b) 74 74 { 75 // we use colo ur map 0 position 1 for current colour75 // we use color map 0 position 1 for current color 76 76 #ifdef HAVE_PLPLOT 77 77 pls_.scol0a(1,r,g,b,1.0); … … 143 143 i!=legend_.end(); i++, ++row) { 144 144 PLFLT y=(0.95-0.04*row)*yrange_; 145 current_colo ur(*i);145 current_color(*i); 146 146 pls_.col0(1); 147 147 pls_.join(x-line_length, y-dy, x, y-dy);
Note: See TracChangeset
for help on using the changeset viewer.