Is it possible to disable the unit for the axis label text? The x-axis shows the time as it should be. The text in the x-axis shows "Messzeitpunkt" but with the, i think, scientific notification afterwards "(x1e+09)". I already tried to set the unit explicit to "None" but this didn't work. Screenshot from plot
Related
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)?
I can easily change background color of an entire chart like:
chart.format.fill.setSolidColor("lightgray");
and I can change the gridlines in the plot area.
I want to change the fill color of the plot area. Can I do that?
Sorry. There is no Office.JS API to do that yet. We are working on such an API. I'm not allowed to predict when it will be available.
I am working with a pie chart whose data labels are added using the best fit property. Most of those labels are placed by Excel inside the pie, but some of them are placed outside.
Because of some series colors are so strong, the data labels had to be defined as white. Of course, the labels placed outside the pie wont be visible if I don't manually change their color (to black, for instance)
What I am trying to do is to conditionally change the label's color according to where Excel placed it (white inside the pie, black outside it), as in the following image:
I have been searching for a solution, but it seems that nobody had a similar problem.
Does anyone know if Excel allows this or does someone know a trick to bypass it?
There is a way to do this in Excel.
When you click on the chart, and go to Layout under Chart Tools.
Once there, go to Data Labels.
When you click on that, it will display a drop-down menu. At the bottom of the menu, click on More Data Label Options.
It will pull up a new window. On the sidebar of the new window, click on Number.
Then, under Category click on Custom.
In the textbox shown under Format Code, type in [Black][<0.05]0%;[White][>=0.05]0%
Click Add.
It should format the numbers outside the pie chart in your example black, and the numbers inside the pie white. If you had different data, you could format it the same, but you would have to change the number in the brackets after the color to the number one higher than number outside of the pie. It would be like this: [Black][<(number one higher than number outside of the pie)]0%;[White][>=(number one higher than number outside of the pie)]0%
Screenshot of Pie Chart Formatting
Source:
http://chandoo.org/wp/2009/01/29/colors-in-excel-chart-labels-trick/
Per default, Excel changes the axis to fit the data. I want to set a fixed x-axis on my chart, e.g. from 0 to 2.
This is to avoid the disturbing resizing shown in the gif below:
I'm using Office 365 Home. I've looked for this setting, but simply can't find it.
Try right clicking on the axis, select format axis then you should get a menu on the right to set the maximum value of the axis. See the screenshots below.
Format axis:
Set the maximum value to 2.
I was wondering if there is a way to integrate a bar chart and a line chart into "one single chart", where the bars are "on top of the line plot? See picture for a clearer view.
(Obviously the bar-chart is not supposed to be outside the actual plot...)
This is a bit of a hack, but you could create two charts with the chart area fill transparency turned to 100%. This allows charts to be placed on top of each other, but in a way that both can be seen. Turning off any elements in the chart that you don't want (for example, duplicate axis) would enhance the presentation.
Problem solved. It was actually just a matter of scaling data, and using two "line with markers" type charts. The lines in between each dot in the one showing the percentage, were then removed. Then, using a certain layout, a line connecting the two series could appear (as shown in pic).