Core Plot Line Selection - touch

I am developing an iOS application that uses the Core Plot framework to plot some data points on a scatter plot along with a trend line. I would like the user to be able to select not only the data points, but the actual line. Basically, I need to know when a touch down occurs within, say, 10 points of the line. Is this possible? Here is a picture of what I am talking about.

Related

Tableau Box Plot has Data outside Bounds

This tutorial explains how to create Box plot in Tableau
First part of tutorial shows how to create below graphic, where the data points are within the box plot
Second part of tutorial uses Tableau's Box Plot function to create below graphic. Note how some points are located well past the Box Plot.
How is this a normal box Plot? Or is the video wrong? Please clarify
Tableau creates their boxplots by default putting whiskers at 1.5 times the inter-quartile range (IQR). Basically, this method excludes what it considers to be outliers. To adjust see Step 10 in the link below
https://onlinehelp.tableau.com/current/pro/desktop/en-us/buildexamples_boxplot.html

How to combine different figures in a Matlab script?

I am workin on a some sort of System test wherein i have a set of readings in the form of a .mat file.
It has a structure in the .mat file with one field as Measurement. It has several Arrays(e.g air mass flow, velocity, carbon content) which further have fields like time and value.
From these, I Need to plot the velocity and the air mass flow against time. For that i wrote the following command which gave me the corresponding plots:
plot(Measurement.(Measurement.air_mass_flow.time),Measurement.air_mass_flow.value)
plot(Measurement.(Measurement.velocity.time),Measurement.velocity.value)
Now i Need to create a script in matlab wherein i can get both the curves one under the other i.e. on the same page. Can anyone help in the Approach i should procede with ?
ok now i will further extend my question.
I have two fields as velocity and acceleration. I Need to plot it on the same curve with grids on for the comparison. But the y axis for both are different.
the velocity y-axis is: (0:20:120), which should be displayed on the left side and the acceleration y-axis is: (0:2:12) which should be displayed on the right side.
i wrote the following code for this:
plot(Measurement.(Measurement.VehV_v.time),Measurement.VehV_v.value)
grid on
set(gca,'xtick',[0:500:2000])
set(gca,'ytick',[0:20:120])
hold on
plot(Measurement.(Measurement.accel_w.time),Measurement.accel_w.value)
grid on
set(gca,'xtick',[0:500:2000])
set(gca,'ytick',[0:2:12])
Do i Need to write a function for that as i am directly reading the values from the structure.
plotyy() also doesnt seem to work
But the axis are not matching and the graph for acceleration is very small. Could anyone help me out with this ?
I also want to add a Picture of the Graphs here but unfortunately there is some error here. I hope the question is clear without the Picture.
Yes you can use the subplot command, e.g.:
figure
subplot(1,2,1)
plot(Measurement(Measurement.air_mass_flow.time),Measurement.air_mass_flow.value)
subplot(1,2,2)
plot(Measurement.(Measurement.velocity.time),Measurement.velocity.value)
You can use help subplot on Matlab for further details or have a look at this:
https://www.dartmouth.edu/~rc/classes/matlab_graphics/Matlab-subplots.html

First point of gradient change in matlab

I'm looking to automate the finding of a location on a plot.
this is the plot
I want my code to automatically find the point where the plot smoothes out. The point that is highlighted in the plot. I did this by hand with the selector tool, but I need to do it for many different plots, so selecting them each by hand would take too long.
Is there anyway to automate this process?

Single Axis Simulation in Matlab

Hi i wanted to generate a single axis graph (dont know if this is called a graph exactly) in matlab something like this
In the above image the numerical values represent time ( 1 till 23) min and the vertical thin black lines represent event A . Some of the vertical black lines have a red circle on top denoting occurrence of an event B along with the event A. Is it possible to generate such a simulated image in matlab ? If so what keywords should i look for. Any suggestions to get me quickly started on generating such a graph/Simulation. (Note: I havent actually used matlab a lot.. certainly never generated graphs in it)
You probably want a stem graph, and then do something like:
stem(event_times, ones(size(event_times));
You can overlay multiple graphs to get the red circles, etc.

Make my plot denser

I'm using Core-Plot on my iPhone app.
I need all the records data to be viewed without moving the plot space (the user interaction with the graph is set to NO).
The problem is that the values on my X axis are spread beyond the visible view, and can only be seen when moving the graph.
How can I make the values closer on my X axis?
10x
You need to adjust the xRange of your plot space. Similar to NSRange, plot ranges are given as a starting location and length, which can be negative. Look at the Core Plot sample programs for numerous examples.