]> sourceware.org Git - systemtap.git/commit
grapher: scale from right end of graph
authorTim Moore <timoore@redhat.com>
Tue, 22 Dec 2009 18:48:20 +0000 (19:48 +0100)
committerTim Moore <timoore@redhat.com>
Tue, 22 Dec 2009 23:09:19 +0000 (00:09 +0100)
commit4fca37ae3561da7d0664e0f943146398a8e554dd
tree6fefd7787f878001961b904cf02ada6cae556d7b
parent33dc14f9790c82669f48abe40662bee1314f5741
grapher: scale from right end of graph

The right side of the graph represents the most recent time. Since
there is never anything interesting to the right of that, it makes
sense to have the origin of the scaling be there.

* grapher/Graph.hxx (getHorizontalScale): new function
* grapher/GraphStyle.cxx (GraphStyleBar::draw, GraphStyleDot::draw,
  GraphStyleEvent::draw): Use cairo transform functions to set up
  scaling.
  (GraphStyleBar::dataIndexAtPoint, GraphStyleEvent::dataIndexAtPoint):
  Base calculations on scaling from right.
grapher/Graph.cxx
grapher/Graph.hxx
grapher/GraphStyle.cxx
This page took 0.024449 seconds and 5 git commands to generate.