Greetings, been a while,
I am trying to use log mode in our package, but I have been unable to get the chart to render to my satisfaction, maybe I've got it all wrong and am trying to make the chart do something its not designed to do or I just dont get it .. history will decide.
My issue: a log chart with nice power of 10 values - looks so pretty
Pay attention to the minor gridlines colored Green, Now I zoom into the data range I am interested in
The left axis labels dont autoscale and show 'nice' numbers like when its in linear mode, and my minor gridlines are still in their original places.
Ok so maybe it has something to do with what increment I have set, although I'm used to the linear scales that look after this for me but I go ahead and manually change the increment to something that will draw some lines
Now I have some major gridlines, but the minor gridlines have not been redrawn in between my 'new' majors, in fact they are still placed as if the chart was zoomed right out and still using majors of 1, 10, 100, 1000
In relation to these minor gridlines and getting a nice looking zoomed in chart .. what am I doing wrong?
p.s. I'm using TeeChartNET2010Src_4.1.2011.04150 .. cos I KNOW that is the first question Sandra is gonna ask ... ... I'm learning .. hehe
I dont understand Semi-log mode
I dont understand Semi-log mode
--------------------
Cheers Phil.
Cheers Phil.
Re: I dont understand Semi-log mode
Hello Phil,
I try to reproduce your problem using next demo project example that use Custom logarithmic axis and zoom seems work fine for me. Can you please, tell us if your problem appears in my demo project? Can you tell us, if previous attached project works as you expected? If in project I have made your problem appears, please explain step to step how I can reproduce it in my project.
Thanks,
I try to reproduce your problem using next demo project example that use Custom logarithmic axis and zoom seems work fine for me. Can you please, tell us if your problem appears in my demo project? Can you tell us, if previous attached project works as you expected? If in project I have made your problem appears, please explain step to step how I can reproduce it in my project.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: I dont understand Semi-log mode
Hi Sandra,
Your app does exactly the same as I get ... let me explain using your code.
Take the example of a linear scale like the below graph. The left scale is divided up into nice uniform intervals. Then I zoom in like below And again the chart automatically gives me a nice uniform scale .. no matter how many times I zoom in I get a nice number scale.
And as I can only add 3 attachments .. I will continue this in the next post ...
Your app does exactly the same as I get ... let me explain using your code.
Take the example of a linear scale like the below graph. The left scale is divided up into nice uniform intervals. Then I zoom in like below And again the chart automatically gives me a nice uniform scale .. no matter how many times I zoom in I get a nice number scale.
And as I can only add 3 attachments .. I will continue this in the next post ...
--------------------
Cheers Phil.
Cheers Phil.
Re: I dont understand Semi-log mode
Continued from previous post.
Now in Log mode I understand that the log scale is .. well ... er .. Log , lower intervals will be larger and higher intervals get progressively smaller.
In your app I get 'minor' lines seemingly random i.e. And when I zoom right in I get no minor log lines at all ... its very very easy to zoom in to a point and have no left scale at all ... this never happens in the linear scale unless you force it to. I was expecting (well hoping) that the chart would have the same 'linear behaviour' for the scales and plot them using the Log scale .. and effectively get something like the next image (minor lines drawn by hand so are not exactly to scale, but illustrate the point) Phew ... an epic post .. hope that puts us on the same page ..
Now in Log mode I understand that the log scale is .. well ... er .. Log , lower intervals will be larger and higher intervals get progressively smaller.
In your app I get 'minor' lines seemingly random i.e. And when I zoom right in I get no minor log lines at all ... its very very easy to zoom in to a point and have no left scale at all ... this never happens in the linear scale unless you force it to. I was expecting (well hoping) that the chart would have the same 'linear behaviour' for the scales and plot them using the Log scale .. and effectively get something like the next image (minor lines drawn by hand so are not exactly to scale, but illustrate the point) Phew ... an epic post .. hope that puts us on the same page ..
--------------------
Cheers Phil.
Cheers Phil.
Re: I dont understand Semi-log mode
Hello Phil,
Logarithmic axes don't scale automatically when zooming. So In the meantime you could try setting a small increment for the axes using Zoomed event as do in next code:
Could you please, tell us if code snippet solve your problem?
Thanks,
Logarithmic axes don't scale automatically when zooming. So In the meantime you could try setting a small increment for the axes using Zoomed event as do in next code:
Code: Select all
void tChart1_Zoomed(object sender, EventArgs e)
{
tChart1.Axes.Left.SetMinMax(tChart1.Axes.Left.Minimum, tChart1.Axes.Left.Maximum);
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Increment = 0.1;
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: I dont understand Semi-log mode
I'll try something like that then ..cheers Sandra
--------------------
Cheers Phil.
Cheers Phil.