scatter-plot

D3 Fisheye Distortion on simple Scatter plot

三世轮回 提交于 2019-12-12 01:36:01
问题 I'm trying to implement the d3 fisheye distortion (http://bost.ocks.org/mike/fisheye/) on a simple scatter plot. Here the code that I have so far: http://plnkr.co/edit/yDWld6?p=preview I am very unsure how I should call the circles for the distortion. At the moment it looks like this but nothing happens on "mousemove" so far. svg.on("mousemove", function() { fisheye.center(d3.mouse(this)); circles .selectAll("circle") .each(function (d) { d.fisheye = fisheye(d); }) .attr("cx", function (d) {

Adding a plane to scatterplot3d

别说谁变了你拦得住时间么 提交于 2019-12-11 19:24:52
问题 x <-rnorm(500,50,2) y <-rnorm(500,5,1) z <-rnorm(500,6,1) s3d <- scatterplot3d(x[z<6], y[z<6], z[z<6], zlim=range(z), color="darkgrey", col.axis="blue",col.grid="lightblue", main="scatterplot3d - 1", pch=20) s3d$plane3d(6,0,0) s3d$points3d(x[z>=6], y[z>=6], z[z>=6], pch=20) The above code tells me how to add a plane 'z=6' to the 3d scatter plot. The first question is: I'm wondering how to add a plane such as 'x=3' or 'y=2'. R help file explains that plane3d(Intercept, x.coef = NULL, y.coef =

Finding Points of Intersection In Excel Plots

泪湿孤枕 提交于 2019-12-11 19:14:27
问题 I have a scatterplot of experimentally obtained values and a line x=y, I wish to locate all points of intersection between the trend line and x=y, is there a method/function for doing so? There is no equation which approximates the trend line well enough to solve algebraically. Thank you for your help. 回答1: I feel deleting the only answer is a bit of a poor move, code from the workbook although although I feel the actual sheet explains it better. Code is from here: http://andypope.info/charts

Charts.js - Show labels outside gridlines

一曲冷凌霜 提交于 2019-12-11 17:53:19
问题 I have created chart using chart.js library and whenever I am adding labels. Show labels outside gridlines Here is my example https://stackblitz.com/edit/scatter-polar-chart?file=index.js Without Labels With Labels Edit - 1 if you add labels, left side value 6 is not in the alignment with grid circle 来源: https://stackoverflow.com/questions/53006335/charts-js-show-labels-outside-gridlines

Delegate method in the ios coreplot framework for CPTScatterPlot does not work

拜拜、爱过 提交于 2019-12-11 17:33:39
问题 I was trying to use the delegate method -(void)ScatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index in the ios coreplot framework. Unfortunately, it does not seem to work. This method is declared in the header file CPTScatterPlot.h . Please help!! Thanks! 回答1: Try increasing the plotSymbolMarginForHitDetection . The default of 0.0 means you have to hit the plot point exactly for it to register. 来源: https://stackoverflow.com/questions/11550624/delegate-method

Re-arrange Axis of MS Excel 2016 Scatterplot

倾然丶 夕夏残阳落幕 提交于 2019-12-11 17:16:02
问题 Software: MS Excel 2016 Files: GitHub Repository Referring Question: MS Excel Scatterplot converts Months to Numbers I created scatterplot in month_unordered_axis.xlsx from following data Then I customized X-axis so it displays only month Unfortunately the scatterplot (in Chart1 of month_unordered_axis.xlsx) starts with October rather than January. How to order the X-axis so it displays from January to December? 回答1: Your graph is displaying October as the minimum value from its automatic

Animated 3D Scatter-Plot in Matlab

荒凉一梦 提交于 2019-12-11 13:24:46
问题 I have a set of data with a total of 4 independent variables, and I figure the only way to represent 4 independent variables and one dependent variables is to animate a 3D scatter-plot. Let's say I have the following set of data: W X Y Z Val 0 0 0 0 5.5 0 0 0 1 2.3 0 0 1 0 1.6 0 0 1 1 8.8 0 1 0 0 2.6 0 1 0 1 4.8 0 1 1 0 0.1 0 1 1 1 1.1 1 0 0 0 1.0 1 0 0 1 0.0 1 0 1 0 0.4 1 0 1 1 4.4 1 1 0 0 4.4 1 1 0 1 7.9 1 1 1 0 9.1 1 1 1 1 2.3 And the values were read in and converted to the following

How to automatically plot many CSV files with the same number of rows and columns?

坚强是说给别人听的谎言 提交于 2019-12-11 12:53:46
问题 I have many (more than 100) csv files with same table structure for example in all table headers are in row 4 and they all have 6 columns and the data are from row 5 to 400001, I need to plot these data in a scatter plot which x shows the first column (40001 time unit) and the other columns are Ys for different variables, [its preferable if I be able to format a plot (colors, ranges, titles, legends , ...)] and automatically input these csv files and export png or pdf or anything else that

Drawing scatter graph using matlibplot.pyplot when points are duplicate

穿精又带淫゛_ 提交于 2019-12-11 12:47:19
问题 I want to generate a scatter graph using matlibplot.pyplot and a lot of points are duplicate. So when I simply draw a graph use pyplot.scatter method, many points are overdrawn on one dot. In order to consider the number of points on that position, I think I need to set a different point size, like a bigger circle if the spot contains more data points. Can someone give me a pointer on how to do this? Thanks! 回答1: The easiest way to do this is to set a low alpha , and then when the points plot

Combining matplotlib's mouse button events with pick events

谁都会走 提交于 2019-12-11 12:19:07
问题 Based on combination of mouse button and key events, different functionalities are applied to the points of a scatter plot. When the left mouse button is pressed matplotlib's Lasso widget is called and with the included points functionality 1 takes place. When Shift+LMB are pressed a Lasso is drawn and functionality 2 takes place with the included points. When Alt+LMB are pressed a Lasso is drawn and with the included points functionality 3 takes place. Last, but not least, when I press the