Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 Vertical Axis Control

closed
5
2008-09-10
2008-07-07
Anonymous
No

It would be great to have more control over the vertical axis :
- Manually chose the Max and Min values (VMax and VMin ?)
- Print the vertical axis in reverse order with a different origin

For a rank for example, the maximum value should be 1 and should be on the top.

Discussion

  • Bill F
    Bill F
    2008-07-10

    Logged In: YES
    user_id=2142444
    Originator: NO

    I had the same request, I added it to the latest version (1.26). If you would like a temporary solution, I have pasted the diff below. I also commented out all the ImageAntiAlias lines causing problems.

    184c184
    < function drawScale($Data,$DataDescription,$Divisions,$R,$G,$B,$DrawTicks=TRUE,$Angle = 0,$Decimals = 1,$WithMargin = FALSE)
    ---
    > function drawScale($Data,$DataDescription,$Divisions,$R,$G,$B,$DrawTicks=TRUE,$Angle = 0,$Decimals = 1,$WithMargin = FALSE,$VMin_Offset = NULL,$VMax_Offset = NULL)
    210,211c210,221
    < $this->VMax = $this->VMax + $ScaleOffset;
    < $this->VMin = $this->VMin - $ScaleOffset;
    ---
    >
    > if ($VMax_Offset === NULL) {
    > $this->VMax = $this->VMax + $ScaleOffset;
    > } else {
    > $this->VMax = $VMax_Offset;
    > }
    >
    > if ($VMin_Offset === NULL) {
    > $this->VMin = $this->VMin - $ScaleOffset;
    > } else {
    > $this->VMin = $VMin_Offset;
    > }
    506c516
    < ImageAntiAlias($this->Layers[0], true);
    ---
    > // ImageAntiAlias($this->Layers[0], true);
    715c725
    < ImageAntiAlias($this->Layers[0], true);
    ---
    > // ImageAntiAlias($this->Layers[0], true);
    795c805
    < ImageAntiAlias($this->Layers[0], true);
    ---
    > // ImageAntiAlias($this->Layers[0], true);
    844c854
    < ImageAntiAlias($this->Layers[$GraphID], true);
    ---
    > // ImageAntiAlias($this->Layers[$GraphID], true);
    1210c1220
    < ImageAntiAlias($this->Layers[0], true);
    ---
    > // ImageAntiAlias($this->Layers[0], true);
    1603c1613
    < ImageAntiAlias($this->Picture, false);
    ---
    > // ImageAntiAlias($this->Picture, false);
    1617c1627
    < ImageAntiAlias($this->Picture, true);
    ---
    > // ImageAntiAlias($this->Picture, true);
    1747c1757
    < ?>
    \ No newline at end of file
    ---
    > ?>

     
  • Logged In: YES
    user_id=2084985
    Originator: NO

    The setFixedScale($VMin,$VMax,$Divisions=5) will help you partially. Scaling is still an hot topic.

    JD

     
    • status: open --> pending
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed