How to draw Y-axis grid in core-plot? - iphone

How to draw X-axis grid, ie draw horizontal line against y=axis value?
please help me out?
sri

You need to set the majorGridLineStyle and/or minorGridLineStyle properties on your axes. See CPTestApp in the examples folder for some sample code.

Related

Paraview: Add axes to the planes not aligned with the Orientation axes

I have created a slice in paraview. This slice is rotated about the z axis. Hence when I use the "Axes grid" for adding the axes, the axes also appears to be rotated. If there a way to define a new axes in Paraview that aligns with the rotated slice? Can someone please help me?
You will have to use the Transform filter and configure it manually based on your slice Z-rotation. Not very practical I agree.

Changing the plot position of z-axis

I wanted to change the position of z-axis in a 3d graph. I tried to do using graph properties but it does not work, Matlab has this option in 2D plot in axis properties window in the graph, but it does not work in 3d plots. Currently,the plot is at z=0 and I wanted to the position to z=6. Attached is the sketch where I need to change the position of the curve plot (red) from z=0 to z6. I appreciate if there is any solution/suggestion regarding this issue. Thank you.
sketch
Regards,
Alishah
A very simple solution for this question is that convert z in your formula to z-6. You know it from mathematics, It will shift a curve, 6 unit .
If you want to change in right or left, you plus or minus.

adding gridlines to boxplot in matlab

How do I add gridlines on both vertical and horizontal axis to a boxplot here is a simple example
load carsmall
boxplot(MPG, Origin, 'medianstyle', 'target')
grid on;
This only allows lines to be placed horizontally. I need something to separate out the horizontal axis as well
Thanks!
use the factorseparator handle:
boxplot(MPG, Origin, 'medianstyle', 'target','factorseparator',1)
FYI, you would know that if you searched for the word "grid" in the boxplot documentation page http://www.mathworks.com/help/stats/boxplot.html.
imagine what else you could discover if you start to read the documentation pages!

MATLAB Graphing plots with axes

I have been trying to Create a program with the GUI in MATLAB. When I try to plot information with AXES I can not figure out how to do it. I know about the function plot, but I need to be able to re-size and move the plot around in the figure so I can make room for the input uicontrol. I am not sure what to do. Please help.
There are a couple of different ways to tackle this problem. But the way I always choose to do so, is:
hold on:
plot(...), xlim([xmin xmax), ylim(ymin ymax])
This should set your bounds on the axis.
I don't have Matlab at hand right now, but try the following:
To set size of the plot axes inside the figure window use
set(gca,'Position',[left bottom width height])
see Mathworks' site on axes properties

iOS Line charts with multiple y-axis

I am able to displaying multiple Y-axis using core plot, but my problem is I need to display different values on two Y-axis with different interval difference.
How to draw graphs using core plot same as above images.
Is it possible to draw graphs or not. If not possible please tell me reason.
If possible give me some suggestion or provide sample code using core plot.
Please help me.
Thanks in advance.
You need to use a separate "plot space" for each different axis scale. For these graphs, you would need two—one for the left y-axis and the x-axis and another for the right y-axis. See the Plot Gallery (the Plot Space demo) and CPTTestApp (Mac version) example apps for sample code.
For LineChartDataSet you have property axisDependency. This property could be
AxisDependencyLeft
AxisDependencyRight
For swift
.Left
.Right