Show
Ignore:
Timestamp:
07/15/07 15:46:33 (6 years ago)
Author:
ggpolo
Message:

Graph updates as data updates now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/ggpolo/umitInventory/TLGraph.py

    r1023 r1030  
    314314        Do everything necessary after changing graph attributes. 
    315315        """ 
     316        if self.max == -1: 
     317            # graph has no data 
     318            return 
     319 
    316320        self.hmarks_pos = { } 
    317321        self._calculate_graph_alloc() 
     
    491495        self.left_reserved = width + 4 + self.mark_size 
    492496 
    493         if width / 2.0 > self.top_reserved: 
    494             self.top_reserved = width / 2.0 
     497        if height / 2.0 > self.top_reserved: 
     498            self.top_reserved = (height / 2.0) + 2 
    495499 
    496500        if self.ylabel: 
     
    13661370            self._paint_hover_area(cr) 
    13671371 
     1372        if self.max == -1: 
     1373            # graph has no data 
     1374            return 
     1375 
    13681376        # draw graph 
    13691377        if self.startup_animation and self.anim_timer == -1: