scaled plot
Posted: Thu Apr 08, 2010 8:18 am
Hi,
I have to create a plot of a chart with a defined length of vertical and horizontal axes. For example I have a chart with a vertical axis form 0 to 25 and a horizontal axis from 0 to 350. I have to print the chart with a horizontal axis length of 10 cm and a vertical axis length of 20 cm.
My Code
...
Chart1.Axes.Left.Automatic:=false;
Chart1.Axes.Bottom.Automatic:=false;
Chart1.Axes.Left.Maximum:= 25;
Chart1.Axes.Left.Minimum:=0;
Chart1.Axes.Bottom.Maximum:=350;
Chart1.Axes.Bottom.Minimum:=0;
Chart1.PrintProportional:=false;
Chart1.Axes.Left.PositionUnits:=muPixels;
Chart1.Axes.Left.StartPosition:=0;
Chart1.Axes.Left.IAxisSize:=4724;
Chart1.Axes.Bottom.PositionUnits:=muPixels;
Chart1.Axes.Bottom.StartPosition:=0;
Chart1.Axes.Bottom.IAxisSize:=2362;
Chart1.Print;
creates a plot of 17.6 cm x 9.3 cm.
Where is my mistake? Thanks
Roland
I have to create a plot of a chart with a defined length of vertical and horizontal axes. For example I have a chart with a vertical axis form 0 to 25 and a horizontal axis from 0 to 350. I have to print the chart with a horizontal axis length of 10 cm and a vertical axis length of 20 cm.
My Code
...
Chart1.Axes.Left.Automatic:=false;
Chart1.Axes.Bottom.Automatic:=false;
Chart1.Axes.Left.Maximum:= 25;
Chart1.Axes.Left.Minimum:=0;
Chart1.Axes.Bottom.Maximum:=350;
Chart1.Axes.Bottom.Minimum:=0;
Chart1.PrintProportional:=false;
Chart1.Axes.Left.PositionUnits:=muPixels;
Chart1.Axes.Left.StartPosition:=0;
Chart1.Axes.Left.IAxisSize:=4724;
Chart1.Axes.Bottom.PositionUnits:=muPixels;
Chart1.Axes.Bottom.StartPosition:=0;
Chart1.Axes.Bottom.IAxisSize:=2362;
Chart1.Print;
creates a plot of 17.6 cm x 9.3 cm.
Where is my mistake? Thanks
Roland