Designate data points in scatter plots
Hey,
I`ve made a correspondence analysis in excel and want to get a scatter plot as .eps-file.
I`ve imported the X and Y values in Illustrator and created a scatter plot. Now I would like
to represent the numbers of data points (like in the illustration below). Is this even possible?
If so, how? Various tutorials didnt help.
Thanks for the help!
Heiko
That's possible. See http://www.m-server.de/m_g/Scatter%20graph-cs5.ai.zip
How to create a graph design:
http://help.adobe.com/en_US/illustrator/cs/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html#WS714a382cdf7d304e7e07d0100196cbc5f-61a3a
Similar Messages
-
Label each point in scatter plot
Hi There,
I am plotting a set of data (in x,y format) on a scatter plot. Is there a way in labview such that when i move mouse over some dot it can tell me information about that dot (like the name of that set).
Thanks in advance
Yogesh
PS: i am using Labview 8.2
Solved!
Go to Solution.The reason why it hangs is because you have 2 event structures inside a loop. You should only have one event structure in a loop. This is documented in the LabVIEW Help. With 2 event structures one of them will block the other.
Your code is also about 3 times larger than it needs to be:
To create the array of names for the dropdowns you only need to autoindex a for-loop from the 2D array of data and use the Format Into String function. You don't actually need to use the values - you only need to autoindex the for-loop.
Using Delete From Array and Reshape Array just to pull out a row is simply silly (not to mention a Rube Goldberg). That's what Index Array is for.
In the Cursor Move event case you only need one function: Index Array. The point index is already available to you from the event case's data.
Half of the code really belongs outside of the while loop since none of that data ever changes, so what's the point of regenerating it each time?
Instead of using 2 Index Array functions just to get the list of names, wire a True to the Read From Spreadsheet File's transpose? input and use the first row output.
I've attached a simplified version of your VI.
Attachments:
PCoption2_MOD.vi 34 KB -
Add point to scatter plot each time a button is pressed
Hi folks,
Apologies if this has been answered elsewhere, I am new to LabVIEW and trying to get an experiment up-and-running quickly!
I was wondering if anybody would have general pointers or code examples on how to create a 2D scatter plot, to which a data point is added each time a button is pressed.
I am measuring a gauge pressure and a force (from a load cell). I would like the scatter plot to add another data point each time I press a button, so that a history of my datapoints is shown. It would also be quite nice is this plot could then be exported as a .jpg using another button, but this is not critical.
A seperate button would also be available to clear the scatter plot.
My current thinking is that this can be done by 'adding to an array', - presumably the chart would refresh each time an element was added to the array, but I am struggling a little bit with how to do this.
If anybody has any suggestions, I would be very grateful for them.
Many thanks,
EuanHi Euan,
If you want to have your data shown in real time (and I'm assuming you do) then you'll need to use a Waveform Chart. The chart is able to update itself each time a value is written to it.
The event structure is your friend here: you can write a case to update the chart each time a button is pressed. You can also create cases for the other situations you mentioned (clear chart, export jpg etc.)
If you don't care about the chart updating in real time then you can use your idea of updating an array and then use a Waveform Graph to plot the datapoints at the end of your program.
Take a look at the LabVIEW Basics course and the Examples for info on how to implement the event structure. If you run into any problems just post your VI and we'll see if we can't help you fix them.
-CC
"If anyone needs me, I'll be in the Angry Dome!" -
How do I place text on a ScatterGraph and have an arrow point to a data point on a plot?
For example, show the minimum point with the string "MIN" and draw an arrow from the text to the minimum point.
I am using Measurement Studio 7.0 with C#. This could be accomplished in MS 6.0 with annotations.The Measurement Studio 7.0 graphs (WaveformGraph and ScatterGraph) expose events that allow you to custom draw areas of the control. Most of these events appear as pairs of BeforeDraw____ and AfterDraw___. The BeforeDraw events are raised before the drawing begins and AfterDraw events are raised after the drawing has completed.
In your case, you can attach an event handler to the AfterDrawPlotArea event of the ScatterGraph since you want to draw on top of everything that is drawn in the plot area. In the event handler:
// Assuming e is the name of the AfterDrawEventArgs parameter.
// Find the minimum y-value on the first plot in the Plots
// collection of the graph.
double[] xData = scatterGraph1.Plots[0].GetXData();
double[] yData = scatterGraph1.Plots[0].GetYData();
if (yData.Length > 0)
double x = xData[0];
double yMin = yData[0];
for (int i = 1; i < yData.Length; ++i)
if (yData[i] < yMin)
x = xData[i];
yMin = yData[i];
// Map the data point to a point in device coordinates.
PointF minPoint = scatterGraph1.Plots[0].MapPoint(e.Bounds, x, yMin);
// Calculate the starting point for the line of the
// arrow.
PointF startingPoint = new PointF(minPoint.X + 1, minPoint.Y - 1);
PointF endingPoint = new PointF(minPoint.X + 10, startingPoint.Y - 9);
// Draw a vertical line representing the stick of the
// arrow from the point.
e.Graphics.DrawLine(Pens.White, startingPoint, endingPoint);
PointF leftArrowEnd = new PointF(startingPoint.X, startingPoint.Y - 3);
PointF rightArrowEnd = new PointF(startingPoint.X + 3, startingPoint.Y);
// Draw the arrows.
e.Graphics.DrawLine(Pens.White, startingPoint, leftArrowEnd);
e.Graphics.DrawLine(Pens.White, startingPoint, rightArrowEnd);
// Calculate the location of the text by centering it
// about the arrow.
SizeF textSize = e.Graphics.MeasureString("MIN", scatterGraph1.Font);
PointF textLocation = new PointF(endingPoint.X + 1, endingPoint.Y - (textSize.Height / 2));
// Draw the "MIN" string
e.Graphics.DrawString("MIN", scatterGraph1.Font, Brushes.White, textLocation);
Hope this helps.
Abhishek Ghuwalewala
Measurement Studio
National Instruments
Abhishek Ghuwalewala | Measurement Studio | National Instruments -
Connect data points on scatter graph
I currently have a scatter graph to represent the cross section of a creek. I want to connect the data points so that it looks like a line graph.
However, I cannot find an option in the inspector to do this.
Thanks
[IMG]http://i812.photobucket.com/albums/zz49/frusciantaya/Screenshot2010-07-31at72002 PM.jpg[/IMG]PacoA wrote:
How to do it (format scatter charts) in numbers '09?
Open Numbers '09 Users Guide.
Type 'format scatter charts' (without the quotes) in the search box.
Click on the most useful looking (and in this case, only) item in the list.
Regards,
Barry
PS: The Numbers '08 forum isn't the right place for a Numbers '09 question. -
Scatter plots with missing data
How can I force the "Connect Points" option to ignore missing data in a scatter plot or line chart?
If I have:
Sequence
Value
1
5
2
4
3
9
4
8
5
6
7
4
8
3
9
10
2
Numbers will only connect the first four cells with a continuous line, but leave the rest as only points.LS,
You presently get this:
If you use the Filter in the Reorganize panel to show only non-blank rows, you can get this:
Jerry -
Scatter plot graphs, more than 2 series possible?
It's been very difficult for me to put 3 or 4 series of data in scatter graphs and connect the dots with lines as in Excel, it just doesn't allow me. I made a graph before using line graph model but it turns out that in the x axis (which in this case is time in weeks) I need to show the distance proportionally (i.e. 0,2,6,12 and 16 weeks) and I can't find how to do it with a simple line graph. Tried in excel and is easy using the scatter plot graph (very simple, using exactly the same data arrangement). But numbers does not accept the series of data (it only accepts X,Y per series) and in second place there is not lines connecting the dots. Any of you guys have a suggestion?. I'd really prefer to use numbers bit do not why is so difficult to scatter graph the data. Thanks
The default for X-Y pairs can actually be pretty handy, though often it is not. You can easily turn it into one X and a bunch of Y's. Connecting lines are also available.
My assumption from your post is you have a column of X values and several columns of Y values.
1) All data for a scatter plot must be in "normal" data cells, none in header cells.
2) Select all the X & Y data and create a scatter chart.
3) There is a "gear" at the top left of the colored box in the table that indicates the data in the chart. Click it and choose to share X values. Now you should have one column labeled "X" and several labeled "Y" and your chart will show each Y as a separate series.
4) With the chart selected (the whole chart, not one of the series), go to the Chart tab of the inspector, go to the series tab, look for the words "connect points" and choose what kind of line you want to connect the points. Alternatively or additionally, you could make trendline curves by clicking on "advanced". Also, you can do them one at a time and choose different settings for each series by selecting each series separately.
If you have gaps in your Y data, it will not connect the points on either side of the gap, you will have a missing line segment.
If your X data is unsorted, some connecting lines may go right-to-left, not left-to-right. -
Scatter Plot Problem!!
Hello everyone,
I am quite new at Labview and I have a question regarding plotting 2d-array in a scatter plot.
I would like to plot my data as a scatter plot, which I have done with the Waveform graph, and now I would like to find out the area with the highest density in the scatter plot
and mark the area with a circle...is it possible in Labview to realize this?? I would be very thankful for every tips!
Thank You
Best Regards
YunYes it is possible. You said you are using a waveform graph, wouldn't an XY graph be a better choice? I don't know the data you are getting so a waveform graph might be the right tool here.
In either case you'll need to define a length of X that you want to find the denses amount of points. So say X=1 so then you will find all the points between 0 and 1 and count them, then 0.1 to 1.1 and count them, then 0.2 to 1.2 for the length of X on your graph. Doing this in a For loop will make it easy, and then your output will be an array of counts for each section. Find the maximum using the Array Max & Min function.
Then you can highlight the graph using property nodes. You can use a cursor, or annotation, or a custom picture. The easiest would probably be an Annotation and in the Example finder there is one called "Graph Annotations" that find the minimum, maximum, and average values for a graph and put an overlay on the graph.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Highlighting a single data point in a scatter plot - Numbers'09
Is there a way to highlight a single data point on a scatter plot in Numbers'09 (or point to it using a line from each respective coordinate on the x & y axis).
I don't think it matters but the data point i am looking to highlight is the [highest y value/2]... and of course its respective x coordinate once you plug the y value into the equation ( y = f(x) ) and solve for x.Here is my own tip :
As you see, I use two sets of values.
In the second one I define only the yValue of the data point which must be "highlighted".
Yvan KOENIG (VALLAURIS, France) jeudi 10 février 2011 20:49:32 -
Plotting Data Incorrectly in a Scatter Plot
I am trying to plot a graph using a scatter plot in Numbers, and all of the data points are correct except for one. If you look at the data, you can see that the point that is at .00360 on the y axis(the highest point on the graph) is supposed to have an x value of .001 but instead it is too far to the right (closer to .1). This is throwing off my graph and I really need to get this fixed. Below are the links to the data table and the graph. Thanks for any help!
http://img686.imageshack.us/img686/7/picture3wc.png
http://img20.imageshack.us/img20/2035/picture4pe.pngHi Tom,
I tried recreating your table and chart, typing in the numbers rather than having any of them calculated, and manually assigning min and max values to both axes to match yours.
The chart came out with all data points where expected.
I did notice another difference in the curve though—where yours shows three data points forming a concave-toward-the-origin section (at the leftmost portion that is correctly plotted), mine shows four data points. That led me to count the points and find that there is one point—(0.139,0.00309)—missing from your chart.
While I don't see from doing this what may be wrong with your chart, it did bring a workaround to mind that should get you a useable chart before your deadline.
Insert a new (plain) table into your document and resize it to the minimum needed to hold the two columns of data.
Select the cells containing the X axis data and Copy.
Click on cell A1 of the new table and go Edit > Paste Values.
Repeat for the Y axis data, placing it in column B of the new table.
Select the data block in the new table then insert a scatter chart.
If you still get the error, manually edit the data in the cells causing the error.
That should get you through the short term. I think someone may have to look at the actual file to solve the underlying problem.
Regards,
Barry -
The one reason i use scatter plots is to make the X axis my dates. so i see the duration between data points as real distance horizontally. I cannot for the life of me figure out how to do this on the ipad. It seems to not have a way of tweaking the data source so that I can tell it that column B (dates) is my x axis, and column C (lets say remaining data MB's, lets use something everyone on a 250 plan can associate with) is my actual data point to plot.
Anyone figure out this one yet?
Thanks,
Jasonok, i was able to 'kinda' get it to work (not the labelling, but the scatter plot). It seems you have to select the date column first when selecting data, then drag over to the columns of plotted data and it -might- recognize the dates as the x axis. it took me a good 5 minutes playing to get it to go right.
I also had to check the "Share X values" option under the gear button.
as for the labels, it has a "Number format" and a "Same as source", but if you select same as source, it doesn't give you any choices but plain number for formatting. Same as source doesn't work at all right now for dates.
We both need to submit tickets with apple.com\feedback to let them know. I noticed other little fixes that were not documented in the 1.1 update that people had been submitting tickets on the past few weeks.
Thanks,
Jason
Jason -
Scatter Plot will not start on requested date
Hi,
I am trying to make a very simple scatter plot in Numbers for Mac 3.1. I have created a table with two columns and 44 rows. one column is formatted to dates (year only), the other to numbers (3 decimal places). When I select the table, click on chart and then choose scatter plot, I end up with the chart I would expect to see, except it has added a couple of years I do not want and deciced to plot my first data point on the second unwanted year. How can I overcome this? I have spent hours at this and actually have worked for both IOS and CPU support in Apple so an not a complete idiot with these things, just cant seem to figure it out.
Appreciate any advice!
Regards
Daniel
Year
Temp
1970
-0.070
1971
-0.180
1972
-0.065
1973
0.055
1974
-0.215
1975
-0.160
1976
-0.240
1977
0.005
1978
-0.060
1979
0.050
1980
0.070
1981
0.110
1982
0.015
1983
0.170
1984
-0.020
1985
-0.035
1986
0.035
1987
0.180
1988
0.170
1989
0.110
1990
0.245
1991
0.200
1992
0.070
1993
0.105
1994
0.165
1995
0.270
1996
0.145
1997
0.345
1998
0.525
1999
0.300
2000
0.275
2001
0.405
2002
0.455
2003
0.465
2004
0.445
2005
0.474
2006
0.425
2007
0.397
2008
0.329
2009
0.436
2010
0.470
2011
0.341
2012
0.406Hi Jerry,
What I find odd about your description is that there is no way to format a number such as 2000 as a Date, even manually. And, if you enter a date such as 1/1/2000, there's no way to display it as 2000 via the format options.
I entered 2014 in A2 and it showed Automatic format.
I entered 1/1/14 in A3 and it showed Automatic > Date format.
Copy and paste to B2 and B3 then format as Date and Time > Year
Maybe the date display options vary between Regions.
Regards,
Ian. -
Deleting specific data points from a scatter graph
I cannot seem to figure out how to delete single points in a scatter plot to get rid of the outliers. Someone help me!
I have never used Numbers.
Can't you just delete the data on the source?
The PhD research scientist in me makes me ask you if you are justified in deleting any data points? Even apparent outliers may represent a true data sample. Likewise, how do you know one of the "good" points isn't an aberrant sample that really belongs at an extreme? I would take care of outliers by reanalyzing the sample many times until I averaged it into submission. The only outliers I would outright delete were ones where I could truly question the quality of the analysis based on other data, or it it was truly impossible (e.g., a negative number of apples growing on a tree).
One thing I would do would be make a scatter plot with one set of data and generate my line through it, then generate a second plot on the same page with the outlier data but not plot a line through it. The line would show the relationship I thought really applied but I was also up front about data I had rejected and still presented it for all to see.
Message was edited by: Limnos -
Labeling data points on a 3D scatter
Hi,
Is it possible to label data points on a 3D scatter graph? I am trying to analyze some hansen solubility data (3D data that represents relative solubility) and it would be helpful to label each data point so that I know which chemical it represents.
Additionally, once I've got this display where I want it, ideally id want to superimpose a sphere into the space so that some points are enclosed while others are included. Is this possible on a single graph?
I've attached the simple VI I have so far.
Thanks!Hi NGKai,
I did some research and I try some test by my own and as far I know there is no way to label data points on a 3D scatter graph, that is why the graph has the color scale on it.
Acording to the other question "deally id want to superimpose a sphere into the space so that some points are enclosed while others are included." there is a way to do it and is creating a multiple 3D plots in the same graph, please take a look into this files:
Create Multiple 3-D Plots
https://decibel.ni.com/content/docs/DOC-4271
How Do I Create Multiple Plots on a Single 3-D Graph in LabVIEW?
http://digital.ni.com/public.nsf/allkb/0ABACC8B023C15D3862572ED0070E4A6
I hope this info works for you!
Regards
-
Plotting of graph with more than 4000 data points in Excel
Hi All,
I am fairly new to labview world. I am trying to plot out line graphs of the results from my program into Excel worksheet. I have huge set of data points(10000) stored in each of 10 different worksheets in MS Excel workbook. I am trying to compile results into last sheet as graphical representation of all the various dataset into 10 different graphs.
My problem is that I am getting error because MS Graph does not allow me to plot more than 4000 rows or datapoints. Is there better and cleaner way of programming this? Or if some one can provide an example of how to handle such case. I'll appreciate any help.
My goal is to able to plot one set of data 1st then I will be able to run through various worksheets to compile into standalone results.
ERROR MESSAGE: "Report Generation Toolkit: Graphs you create or edit in Microsoft Graph cannot contain more than 4,000 rows or columns, including row and column headers. "
Also for example if we run Line Graph example and change the # of data points from 100 to 4000, we get same message.
Error -41114 occurred at NI_ReportGenerationToolkit.lvlib:Excel_Insert_Chart.vi -> NI_Excel.lvclass:Excel Insert Graph.vi -> Line Graph (Excel).vi
Thanks,
SaurabhHi Dennis,
I am collecting waveform data from oscilloscope using labview in both data & graph format. So my program collects data for a particular operating condition & then saves the data on a worksheet. After it loads new operating condition & goes over same cycle. I have to save all the data points in excel for different use cases, which I am saving in different worksheet for each specific operating condition.
Since I already have data saved in excel at the end of test, I am trying plot each use case in the same report for study & presentaion after tests are finished. I have not been able to do so. I read the post which you have mentioned, seems like newer excel or labview version have same issue. I am using LV 9.0
I will try using decimation but if you have any better way of handling this problem, I'll appreciate if you can share that.
Thanks for your help.
Maybe you are looking for
-
My iPhone 4s is recognized by itunes and iphoto however it does not show up in finder under devices.
-
Photoshop Elements 7 Editor Error & 10 trial error
Photoshop Elements 7 Editor Error Hello, Yesterday I did a clean install of Windows 7 (x64) on my PC & have completely updated it through Windows Updater, I than installed PSE7 (disk that I brought new 3 years ago & has worked fine up till now) & fol
-
What is the meaning of "PSEUDO" and "NONE" in v$session table.
Hi What is the meaning of "PSEUDO" and "NONE" in v$session table. V$SESSION: SERVER VARCHAR2(9) Server type (DEDICATED| SHARED| PSEUDO| NONE) thanks siva
-
Hp office jet 5740 prints copies too light
Hi I just purchased a HP office jet 5740 and have it set up. When I print a color copy it comes out very light compared to the original. This happens when printing without being connected to the computer. Is there any was to adjust this?
-
My new quickbooks requires 10.4.7 but I have 10.3.9
My new quickbooks requires 10.4.7 but I have 10.3.9. I tried to download 10.4.7 but it would not let me. My guess Is I have to dowload every upgrade in between. Does anyone know if that is correct? If so where do I start and how many upgrades do I ne