How to rotate the axis labels in Google image chart - charts

I want to rotate x axis labels according to attached screenshot, But i am not finding any solution in google image chart.
Also how to put the label on top of the y axis, see the attached screenshot.
This screenshot the x axis labels rotate in approx 60 deg
In this Image the x axis labels appears in vertical format
How to put the query for axis rotation in
chart.apis.google.com/chart link
Thanks,

Related

Set axis ratio to square of line charts in ECharts

Is there any way on line charts that the ratio of the axes is always the same independent of the width of the axis?
The width of the surrounding container can change and the minimum and maximum of the x-axis should be updated so that the ratio of the axes remains the same.
I have attached two example images.

Bubble charts Vaadin: how can i set the axes origin on coordinates 0,0

Now vaadin set X axis on min vertical value(bottom) and Y axis on min horizontal value (left), but i will like set axes on middle
I'm afraid that axis are always in left and bottom of the plot area.
One thing you can do is set the min at negative, or leave it automatic, and add a plotline with value 0 for both axes. That way you can visualize the chart's quadrants.
If you're using java API you can use addPlotLine method in xAxis or yAxis classes. You can check the java tab in the boxplot demo

How can we modify the scale of x and y axis in scatter plots in orange?

I am new to Orange and using it for data visualization. I want to change the scale of x and y axis while plotting scatter plots. Can you please suggest how can it be done?
You can change scale by zooming in or out. Zoom in with the zoom icon. To zoom out, hold the right mouse button on the figure and drag mouse up or down.

Change 3D view in matlab

I would like to change the view of a 3D plot in matlab such that the y-axis points upward and the z-axis points to left. For example, consider the following plot:
Here the x-axis points forward, the y-axis points to the right and the z-axis points upward.
I would like to have the y-axis points upward and the z-axis points to the left instead. I tried to rotate the plot (using the figure window toolbar rotate button) but I could not get it to work. (It should just be a simple 90 degrees rotation about the x-axis)
Code to generate the plot:
membrane
view(100,50)
xlabel('x-axis');
ylabel('y-axis');
zlabel('z-axis');
grid on
Try using view. I don't have MATLAB available so I can't test it, but I think it can do what you want.
Example from the documentation:
Set the view along the y-axis, with the x-axis extending horizontally
and the z-axis extending vertically in the figure.
view([0 0]);
EDIT:
Try using three inputs to the view function. I can't experiment myself, but you should be able to do it if you choose the right values here.
From documentation:
view([x,y,z]) sets the view direction to the Cartesian coordinates x,
y, and z. The magnitude of (x,y,z) is ignored.
EDIT 2:
Check out camroll. I think camroll(90) (possibly in combination with view) will work.
From documentation:
camroll(dtheta) rotates the camera around the camera viewing axis by
the amounts specified in dtheta (in degrees). The viewing axis is the
line passing through the camera position and the camera target.
This was posted a while ago, but in case someone else is looking for ways to set y-axis as the vertical one here is a possible fix.
Manually: In the command window type cameratoolbar('show') which will open an interactive toolbar in your plot from which you could change the view. One of the options is to set a principle axis to x, y, or z.
Or in you script you could use cameratoolbar('SetCoordSys',coordsys) command which sets the principal axis of the camera motion. coordsys can be: x, y, z, or none.
http://uk.mathworks.com/help/matlab/ref/cameratoolbar.html

about aligning the xlabel to center of the axis in matlab 3D figure

I am plotting some 3D data in matlab and trying to rotate the xlabel such that it orients the same direction as the xaxis. I fix the view for the current 3D figure to some angle and with trail and error I found the correct angle to rotate the label.
view(al, ae); % where al and ae is the parameter for the view I want
theta = 52; % this angle is obtained by trail and error
xlabel('label at some angle', 'rot', theta)
Now the label oriented in the right direction but I found that it is no longer stay in the center of the corresponding axis, i.e. the center of the label no longer line up with the center of the x-axis. Is that any way to align them again?
Actually, I try something like enter link description here, but it doesn't work very well for the view. By following the idea in that link, I try something like
xf = 1.2*min(get(gca, 'xlim')); % in my case zero is the middle or the xlim
yf = 1.2*min(get(gca, 'ylim')); % in my case zero is the middle or the ylim
set(get(gca,'XLabel'),'Position', [0, yf, zf]);
set(get(gca,'YLabel'),'Position', [xf, 0, zf]);
set(get(gca,'xlabel'),'rot',thetax);
set(get(gca,'ylabel'),'rot',thetay);
set(get(gca,'zlabel'),'rot',thetaz);
So with above code, I set the position of the label to somewhere close to the center of the corresponding axis before rotation. If the label has only one character, then it works. But if the label is long, then it will have the first character aligned with the center of the axis instead. The reason is I didn't taking the length of the label into account. I know I should but the problem is how much should I offset the label from the center of the axis? I only know the size of the font and total number of characters of the label, how do I found out the actual length of the label? Thanks.