Core Plot Multiple Selection - objective-c

i'm creating a stock chart, where i need to be able to select a period range from a chart and display that period on other chart. To do that i need to be able to have 2 select points on first chart to select values.
I saw this similar question, but it doesn't have enough explanation on how to do it, since i'm a newbie regarding to Core Plot and chart manipulation.
Can someone provide some sample code about this question?
thanks in advance.

Use scatter plots to draw the selection lines. You can draw them both with the same plot if you want the same line style. The Mac version of the CPTTestApp example app includes a selection demo that uses a scatter plot to draw a cross shape over the selected point. You could easily modify that to draw only the vertical line.

Ended up using HighStocks Chartsand embedded it on a webview and load HTML pages with JS.
Thank You all for your help.

Related

Matplotlib how to have a segment of a pie always on the right

So i have a Matplotlib pie chart that i need the second wedge to always be positioned to the right.
Example of problem
My issue is I can manually change the start angle when generating the pie but I am generating hundreds of pies with different data each time so this isn't really practical, does anyone know of a way to do this automatically?

Removing background on a 3d plot Julia

I am having some real trouble trying to plot nice things with Julia.
I first used PyPlot which I was happy with but I had to be able to change the angle on a 3D plots (in that case using surface) so I now use Plots directly with the camera speficication. I would like to remove the background on a 3D plot.
using PyPlot, the following command :
ax=gca(); ax:set_axis_off
works fine.
When using Plots, I tried the following :
using Plots; pyplot(grid=false)
and then my code for the surface, and it does not change the output.
I also tried the first example on this page :https://github.com/JuliaPlots/Plots.jl/pull/695 and grid specification does not work (grids are the same on every area of the layout).
I tried after updating every package and it still does not work.
Does anyone have an idea about what would the problem be please?
Thank you in advance !

Convert plot to equation

I am working on a project that requires me to derive equations for some plots that I would get. Here I want to use an accelerometer to get a reading on the points in the Cartesian coordinates and use these to find the equations of the plot for further analysis of the equations.
The reading would be for the vibrations made by an object for which the vibration needs to be damped.
Currently I did not get any method to change a plot from excel to a mathematical equation. The plot points were derived from a smartphone app.
Equations for all three coordinates XYZ can be calibrated separately.
I am in dire need for a vb.net code to change the plot into equation. the charts would be an input to excel.
Any and all help is appreciated.
Thank You
PS. Please explain if posting a code.

How to display only the columns in a column chart using WinRTXamlToolkit?

I am using WinRTXamlToolkit to create a histogram in UWP.
I'd like to hide almost all elements in the chart, but displaying only the columns, is that possible?
EDIT:
Is it hard to hide only the confusing numbers displays along x Axis
I second Chris's suggestion that you'll need some serious retemplating. IMHO it would make more sense to simply build your own chart with a few bottom-aligned rectangles. It will be easier, it will perform better and be more satisfying to accomplish than chipping at the full chart control to trim it down to what is essentially - a few bottom-aligned rectangles. Bonus points for doing it in Win2D or other Direct2D way that should allow you to get real-time update performance.
See sample Win2D chart rendering implementation at https://github.com/xyzzer/Win2DChartSample

How to put y axis number in Core Plot?

I would like my Scatter graph I am making with Core Plot library to show Y value near every point relative to X data.
I looked at CPTTestApp project from Core Plot examples, but I simply don't get it. First I thought the secret lies in
-(CPTPlotSymbol *)symbolForScatterPlot:(CPTScatterPlot *)plot recordIndex:(NSUInteger)index
method and I have implemented it in my project. Yes, I got points drawn, which is nice, but I found out this probably has nothing to do with values being shown near points....
This suspicion was confirmed when I opened Candlestick demo from Plot_Galley_Mac demo. There is no method from above and it shows numbers nicely!
If anyone can, please, help me. Otherwise, I would like to thank developers for sharing this library with us. Beside over usage of NSDecimal structure and a bit thin manual and reference data, this is fabulous project.
You're looking for "data labels". CPTPlot has a number of properties that control the built-in labeling functions:
labelOffset: distance between the point and the label
labelRotation: rotation angle
labelTextStyle: text style used to draw the labels
labelFormatter: number (or date) formatter used to format the labels
labelShadow: shadow properties applied to the labels
If the built-in labels don't meet your needs, you can create your own. Implement the -dataLabelForPlot:recordIndex: datasource method and return the desired label for each point. Custom labels can be any CPTLayer so you can make anything you want—text, images, or any custom layer that you create.