Search found 9 matches

by UliBru
Wed Jul 12, 2017 8:34 am
Forum: VCL
Topic: How to create a real smooth curve?
Replies: 5
Views: 10874

Re: How to create a real smooth curve?

Hello Yeray,

many thanks.

- Uli
by UliBru
Tue Jul 11, 2017 2:38 pm
Forum: VCL
Topic: How to create a real smooth curve?
Replies: 5
Views: 10874

Re: How to create a real smooth curve?

Hello Yeray, THorizLineSeries seems not to work properly. Series2.XValues.Order:=loNone; Series2.HasZValues:=True; seems to work. But adding e.g. another point by Series1.AddXY(1300,-1.2,'',clTeeColor); between X=1000 and X=2000 (is ascending X sequence) creates a picture like Smoothing2.PNG So the ...
by UliBru
Tue Jul 11, 2017 12:01 pm
Forum: VCL
Topic: How to create a real smooth curve?
Replies: 5
Views: 10874

How to create a real smooth curve?

Hi, I have the following simple code based on a chart with two line series: procedure TForm1.FormCreate(Sender: TObject); begin Chart1.BottomAxis.Logarithmic := true; Chart1.BottomAxis.Automatic := false; Chart1.BottomAxis.Maximum := 10000; Chart1.BottomAxis.Minimum := 10; Chart1.LeftAxis.Maximum :=...
by UliBru
Wed Jun 21, 2017 2:56 pm
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

Re: How to get reasonable X axis markers

Hello Yeray, I have refined the code for correctness, speed and clarity. It contains some specialties as a user can zoom into between the major ticks. The minor ticks are still shown, the chart ends show labels to inform about the x axis values. If there is a major label too close to a chart end the...
by UliBru
Tue Jun 20, 2017 2:25 pm
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

Re: How to get reasonable X axis markers

Hello Yeray, after struggling around with switching linear and logarithmic x-axis including zooming I have now come to the following solution: procedure TForm1.Chart1AfterDraw(Sender: TObject); var i, j: integer; maxx, minx, Position: Double; Chart: TChart; begin Chart := TChart(Sender); maxx := Cha...
by UliBru
Sun Jun 18, 2017 3:50 pm
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

Re: How to get reasonable X axis markers

Yeray,

thanks.

1)
I'll study on using the custom labels. At first look it is ok, but in combination with zooming this may be tricky. Because I may need to design custom labels for each zoom situation.

2)
I have cc'd to the bug list regarding the minor ticks display bug

BR
Uli
by UliBru
Wed Jun 14, 2017 9:21 am
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

Re: How to get reasonable X axis markers

Hello Yeray, I have done some further tests. The devil is given by Chart.BottomAxis.Increment. By default the value is 0 and we get x axis labels at positions 1, 10, 100, 1000 ... If the value is changed to 1 then we get x axis labes at 1000, 2000, 3000 ... But if the chart is zoomed the labels can ...
by UliBru
Mon Jun 12, 2017 12:03 pm
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

Re: How to get reasonable X axis markers

Hello Yeroay, thanks, I'll prep some example code. In the meantime I have also detected that the appearance of the x axis labes also depends on the window size. So resizing the application window changes the labels. And this also leads to a problem as even if the desktop window may nicely show up th...
by UliBru
Sun Jun 11, 2017 6:30 am
Forum: VCL
Topic: How to get reasonable X axis markers
Replies: 9
Views: 16271

How to get reasonable X axis markers

Hi, I need to create charts with a logarithmic x axis. Furthermore it is necessary to zoom into the charts. This leads to strange x axis markers and ticks. Some examples: htklirr_linkst0u42.png hmtklirr_linkskiuq5.png tmtklirr_rechtsb8upw.png So how to control the appearance of major, minor ticks an...