Changing the x-axis crossing point on a log y-axis

Is it possible to change the point at which the x-axis crossing a log y-axis?


I'd like the origin to be 0.1, not 1, and I'm losing hours of my life trying to work out how to do it.

Hopefully it will be something easy that I have missed...

...I'd rather look foolish than buy Microsoft office.

Macbook pro, Mac OS X (10.5.7)

Posted on Jun 15, 2009 2:26 PM

Reply
8 replies

Jun 16, 2009 2:11 PM in response to Badunit

It doesn't appear to be so simple I'm afraid. I am finding, on a log y axis, the default crossing point really wants to be 1.0

I have Office on my netbook, that also defaults to 1, but I know I can change it there.

I don't pretend to be an expert, maybe this is a sensible default for log charts.... however, my open university assignment requires a crossing point of 0.1, so I need to change it.


You can probably image why I'd prefer to complete this assignment on a 17" macbook over a acer one netbook. 😉

Jun 16, 2009 3:39 PM in response to mh8558

I have a workaround if you are willing to do some work.

1) Plot it as a line chart. Set the Y axis to log and the minimum to what you want it to be.

2) Set the data symbol to none.

3) Add an error bar, negative only, percentage, 100%.

4) Go to the Graphic Inspector.

5) Change the stroke of the error bar line to be straight, not an I-beam

6) Increase the width of the error bar. Change the color.

7) Select the connecting line. Set the stroke to none.

Will that work for you? I think this procedure needs a little tweaking still. The first series spills over into the Y axis and the last spills off the end of the X axis. Maybe if you plot one blank data point as the first and another as the last it might look better.

Addendum: This only works for a single series, can't do multiple series. Also, if the X-axis labels are not lined up under the bars, add some spaces to the first (blank) label in the Table Inspector.

Message was edited by: Badunit

Jun 17, 2009 7:09 AM in response to mh8558

I have another idea for you.

1) Multiply all of your numbers by 10 or whatever factor of 10 (i.e., 100 , 1000, etc.) is necessary so that none of them are smaller than 1.

2) Take the LOG of those new numbers.

3) Plot the result of (2) using a linear Y axis. Get your chart looking like you want it with the min, max, and number of Y axis gridlines you want. Each number on the Y axis needs to be an integer, no decimals.

4) Choose a custom format for the Y axis numbers. Delete the format that is there and add a new format for each of the numbers on the axis. For example, lets say you multiplied by 100 in the first step above. The gridline with the number "0" should really be "0.01" so make a format for "if value is 0" and type in 0.01 as the format. Repeat for the other numbers (1 becomes 0.1, 2 becomes 1, 3 becomes 10 ,etc).

Again, kind of a pain. I think I like this solution better, though. The chart looks better in the end and you can do multiple data series on the same chart.

Jun 17, 2009 1:53 PM in response to Badunit

Thanks for your help, and time, in looking into this Badunit.

I think you're right - scaling the data is the only answer for now...

As you say, it's a bit clunky, but at least the chart is the right shape.

I don't have many of these to produce thankfully, I might fudge the Y-axis in photoshop so I don't have to fun around with series.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Changing the x-axis crossing point on a log y-axis

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.