jonrakoto / mtchart

Automatically exported from code.google.com/p/mtchart
GNU General Public License v3.0
0 stars 0 forks source link

Scaling engine not working properly in all cases #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run some of the examples, like Example1.php

What is the expected output? What do you see instead?

The scale in this example goes from -400 to 800 instead of just from 0 to 600 
which would be valid values also. Apparently the scaling engine tries to even 
out the top and bottom border of graphs and ignores the obvious choice for 
starting the scale at 0.

Original issue reported on code.google.com by 128625 on 1 Jul 2009 at 2:58

GoogleCodeExporter commented 8 years ago
R17 looks way better now, a couple of examples still have troubles though.

Original comment by 128625 on 2 Jul 2009 at 9:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
An improved version of the scaling engine is included in V0.1.1.

The following examples still have troubles though:
 - Example3 (Barplot, too much space on the lower border)
 - Example4 (Lineplot, one division too much on the lower border)
 - Example12 (Barplot, too much space on the lower border)
 - Example16 (Lineplot, too much space on the lower border) 
 - Example17 (Lineplot, one division too much on the lower border)
 - Example18 (Lineplot, one division too much on the lower border)
 - Example20 (Barplot, too much space on the lower border)
 - Example25 (Lineplot, one division too much on the upper border)

Original comment by 128625 on 2 Jul 2009 at 2:58

GoogleCodeExporter commented 8 years ago
Fixed in revision 24, tagged as V0.1.2.

Note: Example 25 uses a fixed scale, this is not an effect of the scaling 
engine.

Original comment by 128625 on 3 Jul 2009 at 2:23