+ Reply to Thread
Results 1 to 7 of 7

How to change origin of axis

  1. #1
    Registered User
    Join Date
    01-09-2019
    Location
    earth
    MS-Off Ver
    office 2016
    Posts
    3

    How to change origin of axis

    I am presenting a figure of isotherms within a cross-section, however I am having trouble getting the x-axis aligned properly. I would like the end result to look as below (I achieved this using paint), where the zero value exists right at mid-section, and all the axis values increase/decrease from zero. As far as I have found, the axis always starts counting from an end point (default is the bottom-left corner). Is there a way to change this and achieve the desired appearance? It is worth noting that the cross-section is not a reasonable width (228.75 mm), which is why I am adopting this formatting style.

    Thank you for your help.

    capture 3.PNG

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    14,584

    Re: How to change origin of axis

    I am not sure I understand exactly what you are asking for or concerned about. It seems like it should be as simple as formatting the horizontal x axis so that it's minimum and maximum are opposites (in your example, it looks like the x axis min should be -120, and the max should be +120). Does formatting the axis with the desired min and max work for you, or is there more to your question that I am missing?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-09-2019
    Location
    earth
    MS-Off Ver
    office 2016
    Posts
    3

    Re: How to change origin of axis

    You are correct, if the section was 240 mm wide this would be very simple. Set the bounds from -120 to 120 and specify the major unit as 40 mm, no problem. However, my section is 228.75 mm wide, meaning I need it to run from -114.375 to 114.375. If I want the zero line at the mid-section, as I do, that means I need a major unit size of something like 28.593 mm, which is unreasonable. This is why I was hoping there is a way to set the origin of the axis.

    Thank you

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to change origin of axis

    You can't set the origin; for Excel, it's at the min value of x, by definition.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    01-09-2019
    Location
    earth
    MS-Off Ver
    office 2016
    Posts
    3

    Re: How to change origin of axis

    This was my understanding, thank you for confirming it. I'll have to used different software to achieve the desired look, Cheers.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    14,584

    Re: How to change origin of axis

    Assuming I understand your question, I would respond that exactly what you want is probably not possible with Excel's built in axis options. As you can see in the format axis dialog, Excel offers options for changing the min, max, major, and minor units. Excel does all the rest without further input. If you are dissatisfied with Excel's built in axis options, you will need to do something else.

    I don't know my way around other charting applications. I would not be surprised if there are other charting applications that would have better axis control options that would do this more easily. It may be worth exploring other charting applications.

    If you really want to do this in Excel, you will need to "build your own axis/gridlines (from stuff you have lying around the spreadsheet)" (That would make a good clickbait title for Peltier's article). To save me from writing the whole procedure out, Jon Peltier has a nice tutorial describing the process for a reciprocal temperature axis. Your axis calculations will necessarily be different (let us know if you need help with them), but the overall procedure should be well described:
    https://peltiertech.com/reciprocal-chart-axis-scale/

  7. #7
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to change origin of axis

    MrShorty suggests an excellent alternative.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Scatter Plot Has Incorrect Origin and Axis Range
    By engineer47 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-06-2018, 10:17 PM
  2. Setting X-axis origin on Pivot Chart to today's date
    By MiaBel in forum Excel General
    Replies: 0
    Last Post: 06-16-2015, 02:40 PM
  3. Change file origin after data import
    By Jonathan9 in forum Excel General
    Replies: 0
    Last Post: 10-16-2013, 12:17 PM
  4. invert axis and set origin
    By hansaaa in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-30-2013, 06:53 PM
  5. Replies: 2
    Last Post: 10-17-2012, 01:17 AM
  6. Replies: 1
    Last Post: 10-08-2012, 05:04 AM
  7. Scientific plotting, non-zero x-axis origin, and number labeling
    By Viterbo Mike in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-13-2006, 08:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1