Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Is it possible to set your own interval on a logarithmic scale?

$
0
0
I don't understand completely your question, but at first glance: won't it be enough for you to set the Maximum/Minimum of the axis?

                LogarithmicAxis axis1 = new LogarithmicAxis();
                axis1.Position = AxisPosition.Bottom;
                axis1.Base = 8;
                axis1.MinorStep = 2;
                axis1.MinorGridlineStyle = LineStyle.Dot;
                axis1.MinorGridlineColor = OxyColors.LightGray.ChangeAlpha(20);
                axis1.Minimum = 0;
                axis1.Maximum = 32800;

                plotter.Model.Axes[0] = axis1;
                plotter.RefreshPlot(true);
Results:

Log2
Image

Log8
Image

Log10
Image



I think you can't retrieve the label for minor ticks right now, correct if I'm wrong.

By the way: why would you set the base to "e"? Its logical to obtain "random" values (e^2, e^3...)

Viewing all articles
Browse latest Browse all 2061

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>