labels

How to center stacked percent barchart labels

梦想与她 提交于 2019-11-26 21:51:44
I am trying to plot nice stacked percent barchart using ggplot2 . I've read some material and almost manage to plot, what I want. Also, I enclose the material, it might be useful in one place: How do I label a stacked bar chart in ggplot2 without creating a summary data frame? Create stacked barplot where each stack is scaled to sum to 100% R stacked percentage bar plot with percentage of binary factor and labels (with ggplot) My problem is that I can't place labels where I want - in the middle of the bars. You can see the problem in the picture above - labels looks awfull and also overlap

matplotlib: adding padding/offset to polar plots tick labels

帅比萌擦擦* 提交于 2019-11-26 21:20:19
问题 Is there a way to increase the padding/offset of the polar plot tick labels (theta)? import matplotlib import numpy as np from matplotlib.pyplot import figure, show, grid # make a square figure fig = figure(figsize=(2, 2)) ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True, axisbg='#d5de9c') ax.set_yticklabels([]) r = np.arange(0, 3.0, 0.01) theta = 2*np.pi*r ax.plot(theta, r, color='#ee8d18', lw=3) ax.set_rmax(2.0) show() I'd like to have theta tick labels further away from the polar plot so

Python matplotlib decrease size of colorbar labels

醉酒当歌 提交于 2019-11-26 18:08:02
问题 I need your help! I have a plotting code which is the following: fig = plt.figure() ax1 = fig.add_subplot(111) imax1 = ax1.imshow(data,interpolation = 'nearest', origin = 'lower',cmap=cm.jet)#plot cbar = plt.colorbar(imax1, extend='neither', spacing='proportional', orientation='vertical', shrink=0.7, format="%.0f") cbar.set_label(r"ET [mm/month]", size=10) titlestr = "Evapotranspiration in mm/month" plt.title(titlestr) #plt.xlabel("Longitude") #plt.ylabel("Latitude") imax1.set_clim(0,60)

HighCharts: Labels visible over tooltip

扶醉桌前 提交于 2019-11-26 16:08:49
问题 Labels on my chart are showing over tooltip, which doesn't look very nice. I tried to play with zIndex , but to no result. How can I make tooltips not transparent? Here's my jsFiddle: http://www.jsfiddle.net/4scfH/3/ $(function() { var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: 'graf1', plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { margin: 40, text: 'Podíl všech potřeb' }, tooltip: { //pointFormat: '<b>{point.y} Kč

Label python data points on plot

亡梦爱人 提交于 2019-11-26 15:51:54
I searched for ages (hours which is like ages) to find the answer to a really annoying (seemingly basic) problem, and because I cant find a question that quite fits the answer I am posting a question and answering it in the hope that it will save someone else the huge amount of time I just spent on my noobie plotting skills. If you want to label your plot points using python matplotlib from matplotlib import pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) A = anyarray B = anyotherarray plt.plot(A,B) for i,j in zip(A,B): ax.annotate('%s)' %j, xy=(i,j), xytext=(30,0), textcoords=

In NASM labels next to each other in memory are causing printing issues

牧云@^-^@ 提交于 2019-11-26 12:33:54
问题 I am having an issue while programming in NASM. I am learning how to develop an OS purely in assembly and have started by creating a boot loader. My goal currently is to print \"Hello, World!\" and \"Goodbye!\" using the the BIOS interrupt 0x10. The issue I seem to be having occurs while printing values on the screen. Two labels appear to be next to each other in memory causing printing one string to print the contents of the other string. Why isn\'t hlen stopping the loop at the end of the

Adding greek character to axis title

房东的猫 提交于 2019-11-26 09:29:40
问题 I want to add a greek character to the y-axis of my barplot in R. The problem is that I need this character to be integrated in the title. I want to write: Diameter of aperture (\"mu\"m) in the axis label. With ylab=expression() I can write the greek character, with ylab=\"axis title\" I can write the title with proper spaces between the words. But I can\'t find a way to put all these together and write a proper label with a greek word in the axis label. I hope I was clear enough. 回答1: If you

Suppress exponential formatting in figure ticks

半城伤御伤魂 提交于 2019-11-26 08:26:13
问题 Tick labels for ticks bigger than about 10\'000, get formatted to 1x10^4 for example. Whereas the exponential part appears above the corresponding axes. This misbehavior has been well described on on matlab central as well, but without a solution. Thanks for your help. The \'quick trick\' set(gca, \'YTickLabel\',get(gca,\'YTick\')) did not work when applied to bar3, as can be seen on the following figure. 回答1: One way to get better control over tick labels, and to avoid the exponential

How can I make the xtick labels of a plot be simple drawings using matplotlib?

前提是你 提交于 2019-11-26 07:43:49
问题 Instead of words or numbers being the tick labels of the x axis, I want to draw a simple drawing (made of lines and circles) as the label for each x tick. Is this possible? If so, what is the best way to go about it in matplotlib? 回答1: I would remove the tick labels and replace the text with patches. Here is a brief example of performing this task: import matplotlib.pyplot as plt import matplotlib.patches as patches # define where to put symbols vertically TICKYPOS = -.6 fig = plt.figure() ax

Label python data points on plot

我的未来我决定 提交于 2019-11-26 04:11:55
问题 I searched for ages (hours which is like ages) to find the answer to a really annoying (seemingly basic) problem, and because I cant find a question that quite fits the answer I am posting a question and answering it in the hope that it will save someone else the huge amount of time I just spent on my noobie plotting skills. If you want to label your plot points using python matplotlib from matplotlib import pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) A = anyarray B =