Hi Objo,
Have been looking around at the source code and your project looks very interesting.
i want plot a x (Logarithmic)y(Linear) plot ,below is my code
var model = new PlotModel("LogPlotTest");
model.Axes.Add(new LinearAxis(AxisPosition.left, "Depth") { MinorGridlineStyle = LineStyle.Solid);
model.Axes.Add(new LogarithmicAxis(AxisPosition.bottom, "Rs") {MinorGridlineStyle = LineStyle.Solid});
var data = new LineSeries();
for (double j = 0.1; j < 500;j=j+0.5 )
{
double t = Math.Log10(Math.Pow(j,2));
data.Points.Add(new DataPoint(j,t));
}
model.Series.Add(data);
this.DataContext = model;
if i set new LinearAxis(AxisPosition.bottem) and LogarithmicAxis(AxisPosition.left),
it can plot perfect as i want to do;
but if i set
model.Axes.Add(new LinearAxis(AxisPosition.left, "Depth") { MinorGridlineStyle = LineStyle.Solid);
model.Axes.Add(new LogarithmicAxis(AxisPosition.bottom, "Rs") {MinorGridlineStyle = LineStyle.Solid});
i get wrong plot effect?
please help me:
thanks
