/**
  * Build the plot
  *
  * @param int $xMin Minimum X value
  * @param int $xMax Maximum X value
  * @param int $yMax Maximum Y value
  * @param int $yMin Minimum Y value
  */
 function awMathPlot($xMin, $xMax, $yMax, $yMin)
 {
     parent::awComponent();
     $this->setPadding(8, 8, 8, 8);
     $this->grid = new awGrid();
     // Hide grid by default
     $this->grid->hide(TRUE);
     // Set extremum
     $this->extremum = new awSide($xMin, $xMax, $yMax, $yMin);
     // Create axis
     $this->xAxis = new awAxis();
     $this->xAxis->setTickStyle(TICK_IN);
     $this->xAxis->label->hideValue(0);
     $this->initAxis($this->xAxis);
     $this->yAxis = new awAxis();
     $this->yAxis->setTickStyle(TICK_IN);
     $this->yAxis->label->hideValue(0);
     $this->initAxis($this->yAxis);
 }
Ejemplo n.º 2
0
 /**
  * Build the group of axis
  */
 function awPlotAxis()
 {
     $this->left = new awAxis();
     $this->left->auto(TRUE);
     $this->left->label->setAlign(LABEL_RIGHT);
     $this->left->label->move(-6, 0);
     $this->yAxis($this->left);
     $this->left->setTickStyle(TICK_OUT);
     $this->left->title->move(-25, 0);
     $this->right = new awAxis();
     $this->right->auto(TRUE);
     $this->right->label->setAlign(LABEL_LEFT);
     $this->right->label->move(6, 0);
     $this->yAxis($this->right);
     $this->right->setTickStyle(TICK_IN);
     $this->right->title->move(25, 0);
     $this->top = new awAxis();
     $this->top->label->setAlign(NULL, LABEL_TOP);
     $this->top->label->move(0, -3);
     $this->xAxis($this->top);
     $this->top->setTickStyle(TICK_OUT);
     $this->top->title->move(0, -25);
     $this->bottom = new awAxis();
     $this->bottom->label->setAlign(NULL, LABEL_BOTTOM);
     $this->bottom->label->move(0, 3);
     $this->xAxis($this->bottom);
     $this->bottom->setTickStyle(TICK_IN);
     $this->bottom->title->move(0, 25);
 }
Ejemplo n.º 3
0
 /**
  * Build the group of axis
  */
 public function __construct()
 {
     $this->left = new awAxis();
     $this->left->auto(TRUE);
     $this->left->label->setAlign(awLabel::RIGHT);
     $this->left->label->move(-6, 0);
     $this->yAxis($this->left);
     $this->left->setTickStyle(awTick::OUT);
     $this->left->title->move(-25, 0);
     $this->right = new awAxis();
     $this->right->auto(TRUE);
     $this->right->label->setAlign(awLabel::LEFT);
     $this->right->label->move(6, 0);
     $this->yAxis($this->right);
     $this->right->setTickStyle(awTick::IN);
     $this->right->title->move(25, 0);
     $this->top = new awAxis();
     $this->top->label->setAlign(NULL, awLabel::TOP);
     $this->top->label->move(0, -3);
     $this->xAxis($this->top);
     $this->top->setTickStyle(awTick::OUT);
     $this->top->title->move(0, -25);
     $this->bottom = new awAxis();
     $this->bottom->label->setAlign(NULL, awLabel::BOTTOM);
     $this->bottom->label->move(0, 3);
     $this->xAxis($this->bottom);
     $this->bottom->setTickStyle(awTick::IN);
     $this->bottom->title->move(0, 25);
 }
Ejemplo n.º 4
0
 /**
  * Build the plot
  *
  * @param int $xMin Minimum X value
  * @param int $xMax Maximum X value
  * @param int $yMax Maximum Y value
  * @param int $yMin Minimum Y value
  */
 public function __construct($xMin, $xMax, $yMax, $yMin)
 {
     parent::__construct();
     $this->setPadding(8, 8, 8, 8);
     $this->grid = new awGrid();
     // Hide grid by default
     $this->grid->hide(TRUE);
     // Set extremum
     $this->extremum = new awSide($xMin, $xMax, $yMax, $yMin);
     // Create axis
     $this->xAxis = new awAxis();
     $this->xAxis->setTickStyle(awTick::IN);
     $this->xAxis->label->hideValue(0);
     $this->initAxis($this->xAxis);
     $this->yAxis = new awAxis();
     $this->yAxis->setTickStyle(awTick::IN);
     $this->yAxis->label->hideValue(0);
     $this->initAxis($this->yAxis);
 }