Both Logarithmic Axis

May 24, 2013 at 4:08 PM
Edited May 24, 2013 at 4:08 PM
Is it possible to achieve both X, and Y axis logarithmic? I know there is LogXTransform, Y, and so, but the examples are too difficult to implement in a big project. It would be so nice to be able activate and deactivate the log scales. Is that possible? I've searched this for hours but the different versions of D3 doesn't help at all. Thank you very much
May 26, 2013 at 8:54 PM
Ok the solution was pretty straightforward:
private void bt_Click(object sender, RoutedEventArgs e)
        {
            
            plotter.DataTransform = new Log10Transform();
            plotter.FitToView();
        }

        private void bt2_Click(object sender, RoutedEventArgs e)
        {
            plotter.DataTransform = new Log10XTransform();
            plotter.FitToView();
        }

        private void bt3_Click(object sender, RoutedEventArgs e)
        {
            plotter.DataTransform = new Log10YTransform();
            plotter.FitToView();
        }
The problem is that I dont know how to go back to linear axis. Any idea?
May 26, 2013 at 9:35 PM
I think that can be achieved with:
 private void bt4_Click(object sender, RoutedEventArgs e)
        {
 
            plotter.DataTransform = new IdentityTransform();

            plotter.FitToView();
        }