visualization

What is a good visualization library for creating state diagrams and animations?

霸气de小男生 提交于 2019-12-07 16:12:14
问题 I'd like to post-process log files and extract node data and transitions, and then graph them in a gui of some kind. So, I'd like to programmaticly draw bubble diagrams, maybe with animations showing packets going from node to node. Ideally, perl or java would be the language of choice, but anything that runs on a linux platform would be fine. What is the best library for this kind of thing? 回答1: Java Solutions Two possibilities in Java include Prefuse and Visual Library. They both have the

Treemap visualisation with PHP?

一笑奈何 提交于 2019-12-07 14:45:47
问题 There seem to be examples for TreeMaps for almost every language but PHP. Has anyone got a link to some basic code? 回答1: http://www.neurofuzzy.net/2006/04/28/treemap-php-source-code/ http://powernerd.blogspot.com/2007/06/treemaps-with-php.html 来源: https://stackoverflow.com/questions/2139137/treemap-visualisation-with-php

Color dendrogram branches based on external labels uptowards the root until the label matches

喜欢而已 提交于 2019-12-07 14:42:31
问题 From question Color branches of dendrogram using an existing column, I can color the branches near the leaf of the dendrogram. The code: x<-1:100 dim(x)<-c(10,10) set.seed(1) groups<-c("red","red", "red", "red", "blue", "blue", "blue","blue", "red", "blue") x.clust<-as.dendrogram(hclust(dist(x))) x.clust.dend <- x.clust labels_colors(x.clust.dend) <- groups x.clust.dend <- assign_values_to_leaves_edgePar(x.clust.dend, value = groups, edgePar = "col") # add the colors. x.clust.dend <- assign

plot dirac function in matlab

眉间皱痕 提交于 2019-12-07 13:42:29
I'm trying to plot the Dirac delta function in Matlab using plot , but I don't see anything in the graph. How do I visualize it? x = -10 : 0.1 : 10; y = double(x == 0); plot(x, y); or stem(x, y); I personally prefer using dirac and setting Inf to 1 or another amplitude. x = -1:0.1:1; y = dirac(x); idx = y == Inf; % find Inf y(idx) = 1; % set Inf to some amplitude stem(x,y) Of course, the other answer is perfectly valid. This is just personal preference for being explicit. 来源: https://stackoverflow.com/questions/10045081/plot-dirac-function-in-matlab

Combining mayavi and matplotlib in the same figure

﹥>﹥吖頭↗ 提交于 2019-12-07 12:10:27
问题 I will be making animations. In each frame I want to contain both a mayavi plot obtained with mlab.pipeline.iso_surface(source, some other superfluous args) and a matplotlib plot obtained using simply pylab.plot(args) I have scripts to do both separately, but have no idea how to go about combining them into one figure. I want the end product to be one script which contains the code from both the scripts that I currently have. 回答1: AFAIK, there is no direct way because the backends used are so

D3.js: Zooming the x-axis and data with mouse wheel scroll

谁都会走 提交于 2019-12-07 10:45:25
问题 I searched for other relevant questions, but either by way of me being new to D3 or just rusty as a coder, I can not figure this out. I've got a graph and I want to be able to zoom in by scrolling the mouse wheel only on the a-axis and the data. Right now, I have the whole graph zooming on the roll of the mouse wheel opposed to just the x-axis. Edit: This is my end goal, but perhaps with zoom in/out limits (One thing at a time though): http://mbostock.github.com/d3/talk/20111018/#15 Looks

Constrain Mayavi mouse drag to rotating Earth around its axis

廉价感情. 提交于 2019-12-07 10:10:45
问题 Using iPython Notebook, I have been able to bring up a globe of the Earth with code like: from mayavi import mlab from mayavi.sources.builtin_surface import BuiltinSurface ocean_blue = (0.4, 0.5, 1.0) r = 6371 # km sphere = mlab.points3d(0, 0, 0, name='Globe', scale_mode='none', scale_factor=r * 2.0, color=ocean_blue, resolution=50) sphere.actor.property.specular = 0.20 sphere.actor.property.specular_power = 10 continents_src = BuiltinSurface(source='earth', name='Continents') continents_src

r plotly 3d surface plot issue

元气小坏坏 提交于 2019-12-07 09:47:06
问题 I am trying to plot a 3d surface plot based on these plotly examples When I try these examples on my dataset test_plotly = structure(list(Age = c(82L, 82L, 83L, 83L, 83L, 81L, 81L, 81L, 79L, 80L, 82L, 78L, 78L, 79L, 78L, 80L, 79L, 77L, 77L, 77L, 77L, 78L, 76L, 77L, 77L, 78L, 77L, 76L, 83L, 79L, 76L, 84L, 75L, 75L, 77L, 74L, 74L, 75L, 74L, 74L, 73L, 73L, 74L, 81L, 84L, 73L, 72L, 73L, 71L, 71L, 73L, 72L, 79L, 72L, 71L, 76L, 72L, 75L, 73L, 71L, 70L, 79L, 69L, 70L, 70L, 70L, 77L, 69L, 69L, 68L,

Waveform Visualization in Ruby

你。 提交于 2019-12-07 08:12:37
问题 I'm about to start a project that will record and edit audio files, and I'm looking for a good library (preferably Ruby, but will consider anything other than Java or .NET) for on-the-fly visualization of waveforms. Does anybody know where I should start my search? 回答1: That's a lot of data to be streaming into a browser. Flash or Flex charts is probably the only solution that will be memory efficient. Javascript charting tends to break-down for large data sets. 回答2: When displaying an audio

C# Com Interop with Windows Media Player Visualisation (With Sample Code)

非 Y 不嫁゛ 提交于 2019-12-07 04:41:01
问题 I am attempting to create a Windows Media Player (WMP) Visualization plugin in C#. I am quite new to exposing C# to COM and may have missed something basic. I have persisted with this for 3 days (about 20 hours) and not got past the single issue I will describe below. For those who don't know, WMP visualizations are the pretty images that show in media player while listening to music. In a nutshell : WMP will call certain methods on my C# COM interface, but not others. I have WMP 11 installed