visualization

XML/XSD graphical representation of the tree

ぐ巨炮叔叔 提交于 2020-01-05 07:45:33
问题 I have constructed a XML file and generated a XSD file from it. The XML is almost empty as there are elements but without value : <parent> <child1/> <child2/> </parent> What I'm looking for is a soft that could convert my XML (or its associated schema) into a graphical representation as a tree : parent | | _______________________________ | | | | child1 child2 with cute boxes, colors and so on. Any suggestion ? Thanks 回答1: In general, it would be helpful to understand why you would be doing it

Kibana 4 detects geodata but doesn't display any results on the map

六月ゝ 毕业季﹏ 提交于 2020-01-04 04:12:10
问题 I have created an Elasticsearch index from a data set containing geodata. I have set up mapping for the data. Then I tried to create Kibana visualisation using this data set. Kibana detects the geodata property but finds no result even though there plenty of. Then I ran a test on another data set with different and much simpler layout, and Kibana properly visualised geodata. Here's the sample that works: "location": { "lat": 56.290525, "lon": -30.163298 }, and this is its mapping: "location":

Ordering bars in geom_segment based gantt chart using ggplot with duplicate y-factors

China☆狼群 提交于 2020-01-03 19:41:01
问题 Question I have a dataset, se.df (data at bottom of question), that I'm visualising as a factored gantt chart through the use of ggplot and facet_grid . However, the y-labels are not ordered as I've specified to aes library(ggplot2) base <- ggplot( se.df, aes( x = Start.Date, reorder(Action,Start.Date), color = Comms.Type )) base + geom_segment(aes( xend = End.Date,ystart = Action, yend = Action ), size = 5) + facet_grid(Source ~ .,scale = "free_y",space = "free_y", drop = TRUE) In this

Ordering bars in geom_segment based gantt chart using ggplot with duplicate y-factors

瘦欲@ 提交于 2020-01-03 19:40:59
问题 Question I have a dataset, se.df (data at bottom of question), that I'm visualising as a factored gantt chart through the use of ggplot and facet_grid . However, the y-labels are not ordered as I've specified to aes library(ggplot2) base <- ggplot( se.df, aes( x = Start.Date, reorder(Action,Start.Date), color = Comms.Type )) base + geom_segment(aes( xend = End.Date,ystart = Action, yend = Action ), size = 5) + facet_grid(Source ~ .,scale = "free_y",space = "free_y", drop = TRUE) In this

Logarithmic scale in material google line chart

a 夏天 提交于 2020-01-03 13:59:25
问题 I am not able to create a logarithmic vertical axis for my material Google Line Chart. Documentation states that I should set vAxis.logScale to true in the options, but this leads to no result. Currently my test reads: <div class="chart"></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src="https://www.gstatic.com/charts/loader.js"></script> <script> google.charts.load("current", { "packages": [ "line", "corechart" ]}); google.charts

Pyplot / Matplotlib: How to achieve a compressed y-axis

人走茶凉 提交于 2020-01-03 03:37:28
问题 I am using pyplot to create a climograph based on the visualization of Walter/Lieth. Climograph Walter/Lieth Another Climograph by Walter/Lieth As you can see on the images (the links above), the right y-axis is compressed starting from the value of 100. Their visual distance gets smaller while their numerical intervals become larger. I can't figure out how to achieve this in pyplot. I know how to set the tick values to create a custom scale but of course they always are equidistant. As you

plot dirac function in matlab

北城以北 提交于 2020-01-03 03:11:10
问题 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? 回答1: x = -10 : 0.1 : 10; y = double(x == 0); plot(x, y); or stem(x, y); 回答2: 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:

d3 clustered force layout, distance between cluster center

五迷三道 提交于 2020-01-03 02:51:07
问题 (I'm a d3js newbie) I'm using the d3.layout.force to visualize a graph of nodes that are divided into clusters, basically something like this (even if in my version every cluster's node keep the gravity focus set to its cluster's center): http://bl.ocks.org/mbostock/1747543 What I'd like to accomplish is to keep each cluster separated from the other with a MIN distance. I set random points for each cluster center at initial stage: for(var i = 0; i < clusterLength; i++) { var baseX = 3 var

Visualization of ActiveRecord / NHibernate Entity Model

亡梦爱人 提交于 2020-01-03 00:21:19
问题 Has anyone come across a tool to visualize an ActiveRecord / NHibernate entity model? 回答1: The best thing I can think of is generating a class diagram from VisualStudio of your classes .... 回答2: Check out ActiveWriter. Sample screenshot: alt text http://img30.imageshack.us/img30/1001/modelingsurface.png 来源: https://stackoverflow.com/questions/1271626/visualization-of-activerecord-nhibernate-entity-model

Distribution probabilities for each column data frame, in one plot

前提是你 提交于 2020-01-02 20:17:15
问题 I am creating probability distributions for each column of my data frame by distplot from seaborn library sns.distplot(). For one plot I do x = df['A'] sns.distplot(x); I am trying to use the FacetGrid & Map to have all plots for each columns at once in this way. But doesn't work at all. g = sns.FacetGrid(df, col = 'A','B','C','D','E') g.map(sns.distplot()) 回答1: I think you need to use melt to reshape your dataframe to long format, see this MVCE: df = pd.DataFrame(np.random.random((100,5)),