Reputation: 451
I'm creating in Excel 2007 2D chart to illustrate throwing an object in gravity on different planets. Everything works fine, but I would like to have axis with the same scale, because now chart doesn't match reality.
Values on axis are taken from the data in the sheet. Any ideas how to do it?
Upvotes: 1
Views: 35202
Reputation: 420
<c:manualLayout><c:layoutTarget val="inner"/><c:yMode val="edge"/><c:x val="0.12319887275998495"/><c:y val="0.13061713318514773"/><c:w val="0.69965527777777792"/><c:h val="0.70712960251649337"/></c:manualLayout>
You can now open the new .xlsx file in excel. You can verify if it is square by taking a screenshot of part of the grid and checking it in paint (copy, set selection to transparent, rotate, check if it fits over itself). In my case it was slightly off but this could have been due to rendering limitations since I also noticed some aliasing.
Tested in Microsoft® Excel® for Microsoft 365 MSO (version 2311 Build 16.0.17029.20108) 32 bits
Upvotes: 1
Reputation: 1146
Right click on the vertical axis numbers, (like the 8) and click "Format Axis". Under "Axis Options", change maximum from "Auto" to "Fixed", and input 25.
I did this using Excel 2010, but I believe the process is the same (or similar) in 2007.
Upvotes: 1
Reputation: 2530
It's possible to drag the plot either from the edge of the gray area or from the edge of the plot. If you drag the grey area to the right, the 25 meter distance mark also moves to the right. Or if you want to compress the scale with height: drag the plot down from the upper edge. As the other axis remains the same, the scale should be 1:1 in a certain moment. I'd even use a ruler to make sure :-)
If one wants to get more space above or beside the plot: right-click on y- or x-axis (may be quite tricky to get it right), Format Axis, tab Scale, set Maximum as desired and repeat dragging.
Upvotes: 0