Excel chart (scatter plot) - X axis line behaves strangely - excel

I've noticed this issue a couple of times over the past few years, even now that I've moved from Excel 2013 to Excel 2016 and have a different computer.
I produce a scatter plot, and set the axis line colors to black. Everything thing works as expected. Then I make a change to the underlying data, and the X axis line appears in the wrong place. As shown in the image below, the X axis line appears to be equal to around 4%, rather than 0% as you would expect. (To emphasize, the black lines are not data that is being plotted, but the result of formatting the axis lines to black).
If I close and re-open Excel file, or display it on a different screen, the issue resolves! The image below is exactly the same chart (and data) as shown above, but after I moved the open workbook from my primary monitor to my secondary monitor. Now the X axis line is where you would expect it to be!
Has anyone experienced this issue before, and any idea what causes it? I find it strange that it occurs on both new and older versions of Excel, different versions of Windows, and on different machines.
Thank you very much for your time,
Steve

Related

How to make the printout of what is shown on the Excel screen come out exactly the same on the printer

I've been running into some problems for days and it's already driving me crazy.
In Excel I place a Shape with dimensions
18.6 = height
8.20 = width
and when printing this shape, it comes out different, for example 19.1 x 8.3
If I manually adjust it by decreasing its dimensions, so that it prints correctly, it will work, the problem is that if I take this file to another computer, it may be in the same version of Excel or not, another size will be printed.
That is, each computer comes out in a different size, sometimes less than 1 cm of difference, it seems irrelevant but as the print will be on top of a templated paper, the print has to be faithful to what is presented on the computer screen.
I've already tested it in office 365, Excel 2016
I've done tests on ppt, which works more harmoniously with shapes, loyalty is much higher on ppt.
Has anyone gone through this and managed to solve it (and how please)?
Thanks.

Sudden change in the plot format

About more than a month ago, I realized the plots I was getting from my code have a different format altogether (background not white anymore, grid added, fonts changed, legend affected). I looked and could not find any changes that could have affected the default format of my plots.
Does anyone know if this is a change they made to matplotlib (3.1.1)? Also, is there a way to fix this (preferably without having to define every characteristic of the plot all over)?

Excel 2013 chart in Excel 2016 - all chart elements disappear when I change the secondary axis

I have a number of charts created in Excel 2013, but have now upgraded to Excel 2016.They have a number of stacked area series with a line on the secondary axis.
When I try to amend the bounds of the secondary axis, all chart elements disappear, series, axes, legend. If I create a chart in 2016 I can amend them.
I have 30+ charts to update, each takes half an hour upwards to recreate, and this is just one model of many.
What do I need to do to fix them?
I tried deleting the axis then add it again but the same happened. I also tried making all series on the primary axis then making them secondary axis again and they all disappeared.
So I thought I'd try to delete the line on the secondary axis and add it. When I select the series and click (or press) delete, that series stays but all the others disappear. Doesn't matter which axis they are on. But I got round that by deleting using the 'Select data' dialog.
When I deleted the line and added it and tried to make it secondary axis, everything went blank again.
Is there some setting I need to tweak?

Excel 2016 Chart Data Labels Always Empty

I have several bar charts, all configured to show Data Labels.
The data labels object box is showing (I can also apply Fill and Border colors to it). However, this object is always EMPTY. Regardless of what I tick to show (e.g. Values, Values from Cells, Series Name, etc...) - it is always empty, with the minimum (shrunk) width (as it should expand per the value presented). If I tick to show the "Legend Key" - a colored square does show to the left of the empty label box.
There's no issue with the font definition, or colors, but it seems as if some underlying theme-wide setting is causing this behavior with all charts on this Workbook.
I have a matching Workbook before some formatting (branding) were applied, in which Data Labels are working just fine. I compared all Data Labels settings and options - they are identical.
Any idea where else can I look?
Thanks!
Updating here that the issue is solved.
I believe it is some sort of a bug in Excel 2016.
I deleted the Data Labels and Re-created them, now it is working normally.
I have to delete per each chart where this problem was evident.

Change format of all data labels of a single series at once

I have an Excel 2010 chart, with several series. I have added data labels to one of the series. I want to change the font size of all labels of that series at once. Can it be done?
Note that if the contents of data labels are combinations of the three standard options in the Format Data Labels dialog ("Series Name", "X Value", or "Y Value"), I simply change the font size in the ribbon and it works.
But if data labels contain cell references (i.e., formulas), I could only change the font size of one label at a time.
I guess a macro would help. I tried something a while ago, and faced a sequence of problems (do not remember exactly which).
Anyone knows of a shorter/alternative solution?
It appears I found the cause.
Referring to the figure, whenever any of the cells referred to by the data labels is empty (e.g., deleting the contents of D4), I cannot change the font size.
If I reinstate D4, I can change the font size again. This is reproducible for the simple worksheet/chart of the figure.
According to this,
Workaround 1: Fill up all empty cells referred to. Change the format of labels. Remove added contents.
Workaround 2: Change to a dummy range for the data labels, which has no empty cells. Change the format of labels. Switch back to your intended range.
This might require The XY Chart Labeler, an excellent add-in by Rob Bovey.
This does not always work (there are cases where one cannot change font even with all non-empty cells), so there should be another possible cause for the problem (besides the one reported).
A workaround:
For the workbook, Save As... (you can even use the same workbook name). The problem goes away.
But if you close the file and open it again, the problem reappears.
Most of the times it works.
A workaround (found prior to #1):
A very poor solution, but which possibly saves quite a few keystrokes/mouse clicks in many cases. Select the whole chart, and change the font size in the ribbon. It will change all text. Then recover the font size of all other text but the data labels.
It won't work in charts with more than one series with such data labels, if you want them to have different sizes!
A quick way to solve this is to:
Go to the chart and left mouse click on the 'data series' you want to edit.
Click anywhere in formula bar above. Don't change anything.
Click the 'tick icon' just to the left of the formula bar.
Go straight back to the same data series and right mouse click, and choose add data labels
This has worked in Excel 2016. Purely by luck I worked this out saving a great deal of time and frustration.

Resources