iPhone:COREPLOT:Remove Empty space between two labels - iphone

In iPhone App I am using coreplot for displaying Vertical Bar Graph
How to remove empty spaces between two consicutive Axis Labels?
ie on x-Axis Label1.........Label2........
on Y Axis
Label1
.
.
Label2
Please Help and Suggest.

The labels are centered on the corresponding major tick marks. You'll have to adjust the distance between the tick marks. How you do that depends on which labeling policy you're using.

Related

Add labels for x and y using the plotmatrix function MATLAB

I managed to plot a matrix (16X16) but I want to add labels for each single x and y axis's. As shown below, the labels are written vertically on the y and mixed with each other and also written on the x graph itself and also mixed. Is there a way to add the labels beside the axis without being mixed (as show in the second photo)?
Current graph:
What I want to do:
My code (just stopped after plotting three label as it wasn't working):
[~,ax] = plotmatrix(corr);
ylabel(ax(1,1),'ABCDEFGHIJKLMNOP')
ylabel(ax(2,1),'ABCDEFGHIJKLMNOP')
ylabel(ax(3,1),'ABCDEFGHIJKLMNOP')
xlabel(ax(16,1),'ABCDEFGHIJKLMNOP')
xlabel(ax(16,2),'ABCDEFGHIJKLMNOP')
xlabel(ax(16,3),'ABCDEFGHIJKLMNOP')
If I understand your problem you want to be able to give individual y-labels for the rows and x-labels for the columns. Unfortunately when you use xlabel and ylabel the resulting text overlaps. Here are two solutions
Solution 1: Use the big-axes to set the labels
Use single label for the horizontal axis and vertical axis by referencing the big-axes
[~,~,HBigAxe] = plotmatrix(corr);
xlabel(HBigAxe,'Horizontal Label for Columns');
ylabel(HBigAxe,'Vertical Label for Rows');
Solution 2: use rotation and alignment to avoid overlapping labels
If you want each row and column to have there own labels you can rotate and set the horizontal alignment of the label. For example:
[~,ax] = plotmatrix(corr);
ylabel(ax(1,1),'Y Axis Label','Rotation',0,'HorizontalAlignment','right')
xlabel(ax(end,1),'X Axis Label','Rotation',90,'HorizontalAlignment','right')

Google Image chart not showing correct value for Y-axis in Bar chart

I am rending image chart on a server side code. I am using bar chart (bvg).
I am not able to render the chart the way I want to. I am sure it's doable because I have done it using Google Chart JS. The chart's x axis is month and y axis is score. I want to display the labels Month and Score for each axis along with the bar labels. I also want to show the value markers on the Y-axis.
When I add X and Y axis labels with chxl the Axis Labels shows up along with Y-axis value markers; but strange the value markers denote wrong values. The values range between 0 and 100 no matter what values my bar represents and that too the height of the bar doesn't match with the Y-axis values (which ranges between 0 and 100). Please help.
I've written the URL like this:
https://chart.googleapis.com/chart?cht=bvg&chxt=x,x,y,y&chxl=1:|Months|3:|Score&chxp=1,50|3,50&chbh=30,20,20&chds=0,40&chs=400x400&chco=015CAE,015CAE,015CAE,015CAE,015CAE&chd=t:22,32,11,27,8&chl=Jan|Feb|Mar|Apr|May
And I am concerned about the values displayed in the following snapshot of the chart (see highlighted values in red, they do not match the actual bar values):
Don't Include chds parameter
Here is the modified link:
https://chart.googleapis.com/chart?cht=bvg&chxt=x,x,y,y&chxl=1:|Months|3:|Score&chxp=1,50|3,50&chbh=30,20,20&chs=400x400&chco=015CAE,015CAE,015CAE,015CAE,015CAE&chd=t:22,32,11,27,8&chl=Jan|Feb|Mar|Apr|May

How do you accurately set the offset of an axisLabel in CorePlot?

Problem Statement:
A bar plot in created with CorePlot has a Y-axis that features a dynamic range. The minimum value of this range is presumed to be <= 0. The maximum value of the range is presumed to be > 0.
The bar plot features custom X-axis labels which have an offset to distance themselves from the 0 line of the Y-axis. (label.offset)
However, because the exact location of the 0 line may change during runtime, a static value to offset the X-axis labels is not sufficient.
Question:
What is the appropriate way to accurately set the offset of Axis labels, when axis parameters change at runtime?
Screenshot attached to show problem. Labels should be below the ($200,000) line, but because the top end value is dynamic, they move up and down.
http://i.imgur.com/jdwy1c2.png
From the linked picture, it doesn't look like you're drawing the axis line. Use axis constraints to hold the x-axis at the bottom of the plot area. If you do want to draw an axis line, e.g., at y = 0, add a second x-axis. Use one to draw the axis line and the other to position the labels. Set all of the line style properties of the second axis to nil so it doesn't draw any lines and use constraints to hold it at the bottom of the plot area.

how to add additional label on x-axis on the rightmost in matlab figure?

I have the tick label set for the x-axis already and I also have the label set for the x-axis too. I am seeking a way to put an additional x label to the rightmost of the figure next to the x tick labels, is there any way to do so? Thanks
just like the following figure, the x ticks was added automatically and x label was added by the command xlabel. But I want to add one additional label "add'l" (red) in the figure. But I have many plots and/or subplots and the axes might be different, so I need to add that label with problem instead of manually.
I suggest using a uicontrol that will be carefully placed in the relevant area.
uicontrol('style','text',....);
If your UI is resizable, be sure to have the same units, i.e. if the text units are Normalized, then the axes units should be Normalized as well.
Check out this example on the MATPLOTLIB gallery page: http://matplotlib.org/examples/pylab_examples/alignment_test.html
It shows adding all kinds of different text to the axis.

Pie chart with 2 portion set label with center position

I have problem regarding setting the uilabel in the middle edge in pie chart circle.
In my Pie chart there are 2 portion.
Both portion change dynamically.
How can i get center position in both portion so i can set my label in the center edge of the particular section.
Thank You
Regards,
Keyur Bhalodiya
use carteasian equation.
(x,y) = (rcos#,rsin#).
R is the radius of the piechart. # is the angle at which you need to find a point. In your case middle of your pie slices.