Search found 28 matches

by PoLabs
Tue Dec 29, 2009 5:00 pm
Forum: VCL
Topic: Fixed grid
Replies: 7
Views: 9310

Re: Fixed grid

Yes that is right solution for me. You guys really rock! Thank you for your help again. :!:

:wink:

Best regards,
PoLabs
by PoLabs
Tue Dec 29, 2009 11:01 am
Forum: VCL
Topic: Fixed grid
Replies: 7
Views: 9310

Re: Fixed grid

Hi, I set with Chart1.Axes.Bottom do begin Axis.Color:=clRed; PositionPercent:=50; Ticks.Visible:=false; TicksInner.Visible:=false; MinorTicks.Visible:=false; Items.Clear; for i:=-5 to 5 do Items.Add(i,' '); SetMinMax(-6,6); end; with Chart1.Axes.Left do begin Axis.Color:=clRed; PositionPercent:=50;...
by PoLabs
Mon Dec 28, 2009 8:35 am
Forum: VCL
Topic: Fixed grid
Replies: 7
Views: 9310

Re: Fixed grid

Hi again, ;) Well I would like to attaxch some exe but this is part of project with access restrictions. However I will try to explain to you. As I already mentioned my graph consists of left axis and bottom axis. Both axes has PositionPercent set to 50% so they are centered in chart. The grid has 1...
by PoLabs
Thu Dec 24, 2009 12:31 pm
Forum: VCL
Topic: Fixed grid
Replies: 7
Views: 9310

Fixed grid

Hi, I searched a little bit but I havent found topic on this. I centered Left and Bottom axes and I have dotted grid and 10 divisions on both sides. I would like to have fixed grid all time (even when zoomed). This is in non-zoomed view http://sekopt.si/soundfreak/temp/normal.jpg when I zoom the gri...
by PoLabs
Wed Sep 30, 2009 1:40 pm
Forum: VCL
Topic: Log scale on axis
Replies: 4
Views: 6565

Re: Log scale on axis

I found out solution. Increment must be 0 and then is ok.

Best regards
Aljosa
by PoLabs
Wed Sep 30, 2009 8:10 am
Forum: VCL
Topic: Log scale on axis
Replies: 4
Views: 6565

Re: Log scale on axis

Hi, i still have some problems. Your suggestion doesn't work for me. :( I attached picture of chart where I used your code. http://sekopt.si/soundfreak/chart.png The green lines represent MinorGrid. I used your code with Chart.Axes.Bottom do begin SetMinMax(0, 1000); Increment := 10; // this is mine...
by PoLabs
Tue Sep 22, 2009 1:26 pm
Forum: VCL
Topic: Log scale on axis
Replies: 4
Views: 6565

Log scale on axis

Hi, I would like to draw type of chart like BODE plot is. See it here: http://www.me.cmu.edu/ctms/modeling/tutorial/systemidentification/over_bode.bmp I have problems with bottom axis. I set Log property to true but how can I achieve that lines would be like on attached pictures? I tried with Increm...
by PoLabs
Mon Aug 31, 2009 9:59 am
Forum: VCL
Topic: Labels with exponent
Replies: 1
Views: 3752

Labels with exponent

Hi, I create some series and add it to chart. When I use Logarithmic property to true I would like to have on bottom axis exponent representation of numbers. For linear I have min = 0 to max = 1000000 and now when I set logarithmic to true I would like to see these labels as eg. 1e2, 1e3 10e3 etc......
by PoLabs
Tue Jul 21, 2009 11:27 am
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Hi,

I would like to thank you for your help. I solved problems with your and Narcis help.

Thanks again.

Best regards.
by PoLabs
Fri Jul 17, 2009 10:34 am
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Hi, thank you very much. It realy helped me a lot. I am very grateful for help. I have another question. When I move cursor I have XValue of it. How can I get YValue of some series according to XValue of cursor. Now I am trying with Ycoord := Series.CalcYPosValue(Cursor.XValue); // get y coord of XV...
by PoLabs
Wed Jul 15, 2009 7:15 pm
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Hi, thanks for your answer. Your support is realy good. When I try to use Chart.Axes.Bottom.CalcPos... but on runtime I get for every point 0. My axis min is -5 and max is +5. I set cursor C1 to left (-5) and C2 to right (5) and that works fine. When I try to move coresponding label (labels marks cu...
by PoLabs
Wed Jul 15, 2009 1:06 pm
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Again me... :oops: I have some TLabel objects which I would like to move along with cursors. It is not problem to do that while moving cursor (i use onchange event), but how can I do that programaticly to set labels at cursor position? an eg. Label1.Left := GetCoordsFromvalue (Cursor.XValue) What sh...
by PoLabs
Wed Jul 15, 2009 12:12 pm
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Thank you very much. It works! :)

Best regards,
Aljosa
by PoLabs
Wed Jul 15, 2009 9:50 am
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

One more question. :oops: What if TCursorTool doesn't have assigned series property? Is still possible to set position of cursor? I am using one cursor (general on chart) for several series, so I never really need one series to be assigned to cursor and I still would like to set it's position. Is th...
by PoLabs
Wed Jul 15, 2009 8:41 am
Forum: VCL
Topic: Initial position of TCursorTool
Replies: 12
Views: 14457

Re: Initial position of TCursorTool

Dummy me!! I am so deep into it so I just need to step on step back to see the solution. :oops:

Thank you very much.

Best regards.