visualization

Graph visualization using prefuse is too dense

牧云@^-^@ 提交于 2019-12-10 19:09:38
问题 The graph I have created using prefuse (shown below) is too dense! There are many nodes linking to many other nodes. Is there anyway I could display this more spread out? Thanks in advance! 回答1: Are you using a force based layout? If so, change the force parameters of your layout, or try a different layout action (radial, fructherman-rheinhold, etc). Most of the prefuse layouts have flexible layout parameters, which should fix your problem. In particular, use ForceDirectedLayout

Google Chart dashboard multiple data

本秂侑毒 提交于 2019-12-10 17:53:23
问题 I created a google chart dashboard with different data for each donut chart but only data_2 returns, instead of data_1 for the first chart <div> and data_2 for the second chart <div> . Source document for multi chart w/ different data requires separate functions, but is there a way to use two datasets in the first function drawStuff_1? I ultimately want one dashboard, one ControlWrapper (one-to-many), multiple data sets (carlos, josh, etc.) and multiple donut charts ( <div> for carlos, <div>

R ggplot facet_wrap with different y-axis labels, one values, one percentages

蓝咒 提交于 2019-12-10 17:52:34
问题 I'm plotting a time series value with its percentages using facet_wrap in ggplot: For the plot below, the upper plot is the value, and the lower plot is percentage change. And I would like the y-axis in the lower plot to be "%". Normally in ggplot I would do something like + scale_y_continuous(labels = scales::percent) But since I'm using facet_wrap, how do I specify that I only want one of the 2 plots' y-axis label to be percentages? P.S. Here is the code to generate this plot: library(data

How can I more quickly render my array?

我们两清 提交于 2019-12-10 15:55:07
问题 I have been working on a nonogram solver in Java, and all of my algorithm works fine, but I have been struggling with the visualization a little bit. During the execution of the algorithm, I have access to two "solution-arrays". One is of type int[][] , and contains values -1 for "certainly white", 0 for "uncertain" and 1 for "certainly black". Another array is of type float[][] which contains values between 0 and 1 , here 0 is for certainly white, 1 is for certainly black and a value of .2

Controlling measure zero sets of solutions with Manipulate. A case study

情到浓时终转凉″ 提交于 2019-12-10 14:29:11
问题 To address the question we start with the following toy model problem being here just a case study: Given two circles on a plane (its centers (c1 and c2) and radii (r1 and r2)) as well as a positive number r3, find all circles with radii = r3 (i.e all points c3 being centers of circles with radii = r3) tangent (externally and internally) to given two circles. In general, depending on Circle[c1,r1], Circle[c2,r2] and r3 there are 0,1,2,...8 possible solutions. A typical case with 8 solutions :

Easiest ways to generate graphs from Python? [closed]

回眸只為那壹抹淺笑 提交于 2019-12-10 13:06:10
问题 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 2 years ago . I'm using Python to process CSV files filled with data that I want to run calculations on, and then graph. I'm looking for a library to use that I can send processed CSV information to, or a dict of some sort, and then choose different graphing styles with. Does anyone have any recommendations? 回答1: I'm

How to render a graph as image in node

丶灬走出姿态 提交于 2019-12-10 12:58:14
问题 I want to render a stacked bar graph in image format on the server. The intended use is to push to a service like twitter that doesn't support SVG. As well as the code being being deployable to services like Heroku I've already tried Plotly (their node package is horribly out of date and their API docs poor). I've also looked at Google Graph, Chart.js and AnyChart but they do not support rendering images far as I can see 回答1: You can accomplish this with Vega Vega is a visualization grammar,

How to shade under curve in matplotlib, but with variable color alpha?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 12:08:07
问题 I have some data points which are a function of one variable. I'd like to plot these, but there's associated uncertainty in each datum. Error bars would be OK, but I'd like to be able to visualize the way we expect the error to be distributed as well. For instance, a gaussian distribution with known width could be given. I'm hoping that the alpha value of fill_between could be set according to the probability distribution, resulting in a plot like in this question about filling under a curve,

Pandas - Stacked horizontal barchat for timeline?

谁说胖子不能爱 提交于 2019-12-10 11:35:27
问题 I'm looking at creating a timeline to show state changes for some items. For each item, I have a list of events - e.g.: 08:00 - Item A is now in state RED 08:00 - Item B is now in state GREEN 08:55 - Item B is now in state PURPLE 09:00 - Item A is now in state BLUE 09:22 - Item A is now in state YELLOW 10:20 - Item B is now in state RED etc. I'm using pandas, and was thinking of using the stacked horizontal barcharts (http://pandas.pydata.org/pandas-docs/stable/visualization.html#bar-plots):

OpenGL or Flash for 3d visualization in the browser

隐身守侯 提交于 2019-12-10 10:37:56
问题 I am planning create a site that lets users in finance visualize the price of a foreign exchange option in 3d. x = price of underlying, y = price of option, z = days left to maturity. In other words, rather than a simple option payout diagram, this would allow you, on the Z axis, to view what the P&L scenarios would be if you sold before expiry of the option. In short, I want a visualizaion tool. But given that the surface of the P&L might be quite "curvy", it's going to be good for users to