visualization

How to visualise a graph of C structs that contain / point to one another?

爱⌒轻易说出口 提交于 2019-12-20 08:38:58
问题 I am using Ubuntu 10.04, and studying programming of kernel objects. I have come across some rather complicated structs which I have difficulties reading, so I thought I'd try to find some tool that can help me visualise them. Only thing I could find so far is VCG, which has a C Struct Visualization Example, which looks like this: which looks like something I'd like to use. First thing, is that the last VCG packaged for Ubuntu is vcg (1.30debian-6) in hardy - but the .deb package can be

History visualization tools for version control systems? [closed]

送分小仙女□ 提交于 2019-12-20 08:27:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Specifically, I'm looking for something that, given a single file, and an SVN history, will display insertions and deletions as a pretty animation. That said: I figure that a list of version control visualizers might be a useful resource. 回答1: http://code.google.com/p/gource/ looks very pretty 回答2: I am not sure

Adding text to a plot

拟墨画扇 提交于 2019-12-20 07:05:50
问题 x <- seq(-3,3,0.01) y1 <- dnorm(x,0,1) y2 <- 0.5*dnorm(x,0,1) plot(x,y1,type="l",bty="L",xlab="X",ylab="dnorm(X)") points(x,y2,type="l",col="red") polygon(c(x,rev(x)),c(y2,rev(y1)),col="skyblue") I want to label the difference between the two curves at -3, -2, -1, ..., 3. I have tried using just the text function where I manually adjust the coordinates one by one and then type in the difference between the two curves. Is there an more efficient way of doing this so that the difference between

animate with variable time

泄露秘密 提交于 2019-12-20 06:15:12
问题 I have trajectory data where each vehicle has its own time to start. Each vehicle is a point in the animation. So, in the dataset, for each row there is coordinate point (x,y) along with a timestamp. So, fixed time interval would not work for me. I tried with loop and sleep but it not showing the animation but only the first result. But if debug line by line, it seems okay(updating with new points after each iteration). Here is my code (this is to test: loop , sleep and animation ): #sample

How to plot a figure similar to the one produced by lassoPlot.m to specify a regularization parameter?

我的未来我决定 提交于 2019-12-20 04:25:44
问题 I am trying to apply a regularized optimization other than Lasso. How can I plot the figure similar to the one produced by lassoPlot.m included in MATLAB as shown below if all data needed can be provide? How to plot the I -shaped lines? I read the lassoPlot.m but cannot find out how it is done. 回答1: If I had to create a plot like this manually, I'd do something like this: function q53809665 DATASET = [ 0.601240818 459.5714648 6.549320679 0.38951982 407.6789162 6.915203670 0.250128593 366

D3.js Force Layout - showing only part of a graph

大城市里の小女人 提交于 2019-12-20 03:47:08
问题 Good morning, just starting with the awesome d3js library ... I want to show only a portion of a graph with the force directed layout. The idea is to have one node declared as the "center" and show all nodes within a distance of two (for example) from this center node, the neighbors of the center node and the neighbors of the neighbors. If the user clicks on one of the displayed nodes it becomes the "new" center node and a different "subgraph" is displayed. I wonder if there is an example

Precise process event timeline diagrams (e.g. in Excel)

纵然是瞬间 提交于 2019-12-20 02:36:52
问题 I need to prepare such diagrams: I think it's quite intuitive how to read this diagram and this is why I want to create a few of them for my project. I am quite confused how to create them efficiently; I've painted the one above in Paint just to quickly visualize my idea and it took too long imo. Moreover the time axis is not accurate. I have precise data with event times (eg. loading start in process 1 , loading end in process 1 , algorithm start in process 2 etc.) e.g. Process 1: 00.0 - 40

Is the bigvis package for R not available for R version 3.0.1?

浪尽此生 提交于 2019-12-19 10:19:30
问题 I'm developing an app designed to handle big data and was having problems graphing the data in a useful way because of the sheer amount of plot points. My initial idea was to create a little algorithm that, based on the size of the data, divides the data points into about 30 subsets and takes the average of all the points in these subsets (what are the faults of this implementation by the way)? Then I learned about bigVis, which does a lot of the big data representation for you, and I really

Color points in scatter plot of Bokeh

淺唱寂寞╮ 提交于 2019-12-19 03:39:27
问题 I have the following simple pandas.DataFrame : df = pd.DataFrame( { "journey": ['ch1', 'ch2', 'ch2', 'ch1'], "cat": ['a', 'b', 'a', 'c'], "kpi1": [1,2,3,4], "kpi2": [4,3,2,1] } ) Which I plot as follows: import bokeh.plotting as bpl import bokeh.models as bmo bpl.output_notebook() source = bpl.ColumnDataSource.from_df(df) hover = bmo.HoverTool( tooltips=[ ("index", "@index"), ('journey', '@journey'), ("Cat", '@cat') ] ) p = bpl.figure(tools=[hover]) p.scatter( 'kpi1', 'kpi2', source=source)

Adding Color Attribute to Nodes on NetworkX to export to Gephi

梦想与她 提交于 2019-12-19 03:39:14
问题 I am making a graph using NetworkX to export to visualize with Gephi. I've been adding various attributes to the nodes in my graph, without issue, until I tried adding colors. Does anyone know how to export a graph with "colored" nodes using networkx? (I've been writing into a gexf file, but don't care if it is another format as long as it is compatible with Gephi.) Here is the code in which I make the graph: def construct_weighted_graph(nodes, distance_dict, weighting_function, color = True)