当前位置: 首页>>代码示例>>PHP>>正文


PHP Axis::setTickStyle方法代码示例

本文整理汇总了PHP中Axis::setTickStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP Axis::setTickStyle方法的具体用法?PHP Axis::setTickStyle怎么用?PHP Axis::setTickStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Axis的用法示例。


在下文中一共展示了Axis::setTickStyle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: awMathPlot

 /**
  * 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);
 }
开发者ID:ber5ien,项目名称:www.jade-palace.co.uk,代码行数:27,代码来源:MathPlot.class.php

示例2: awPlotAxis

 /**
  * 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);
 }
开发者ID:ber5ien,项目名称:www.jade-palace.co.uk,代码行数:32,代码来源:Plot.class.php

示例3: __construct

 /**
  * 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);
 }
开发者ID:greench,项目名称:prestashop,代码行数:32,代码来源:Plot.class.php

示例4: __construct

 /**
  * 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);
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:27,代码来源:MathPlot.class.php


注:本文中的Axis::setTickStyle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。