data-visualization

Finding the right marker size for a scatter plot

﹥>﹥吖頭↗ 提交于 2019-12-11 13:13:21
问题 I want to plot a grid where each node in the grid is drawn by a dot, with a certain color code (taken from a vector stored in the node). the grid here varies in size depending on the size of the simulations I am running. I have yet to figure out the relationship between the canvas size and the marker size. Now I use the following formula: markersize = (figsize*figsize*dpi*dpi)/(xdim*ydim) plt.scatter(X, Y, s=markersize/3, marker='s', c=Z, cmap=cm.rainbow) plt.show() that is I square the

Best Way to Visualize Large Number of Categories

对着背影说爱祢 提交于 2019-12-11 12:45:30
问题 I have a large number of categories with a quantitative value that I have to compare visually in a web app. There's no way to group these categories together, they are independent of one another completely and have rather large value differences... Some counting in the hundreds others in the millions. Visually, is there any good way to show this off? I'm working in Highcharts and looking at D3 as well to render this data, however the big issue is coming from trying to fit all this data into

Anyone have a way to plot a bean plot in gnuplot?

风格不统一 提交于 2019-12-11 12:13:21
问题 Title is pretty self explanatory but here is a picture of what I'd like to do. I'm having a tough time figuring out if its even possible. Plot borrowed from: Evaluation of geochemical background levels around sulfide mines – A new statistical procedure with beanplots. Gusstavason et al. 2012. 回答1: Doing the plot in exactly this orientation could be very cumbersome, if possible at all. My suggestion is to plot everything with the usual orientation (i.e. having the 'sediments' axis as x -axis,

Image on pie graph with highcharts

僤鯓⒐⒋嵵緔 提交于 2019-12-11 11:01:58
问题 I am looking for a graph library that is highly customizable. I found Highcharts and loved it. I am trying to create a pie chart that has images on it. Something like this image but I am not sure how to do it with highcharts. can anyone help me. Is this possible with highcharts ? if not can you please suggest any other graphs where I can get this output? 回答1: It is possible using Highcharts to add custom image to chart using default API's renderer . (API reference: http://api.highcharts.com

Multiple boxplots in R

泪湿孤枕 提交于 2019-12-11 10:48:37
问题 I have gene expression data as follows: Control Treatment L1 L2 L1 L2 g1 10.5 12 13 14 g2 11 13 10.5 12 g3 10 9 11 10 g4 9 8 6 5 g5 16 4 4 6 g6 11 12 5 4 g7 10 6 13 12 g8 5 4 12 12 g9 11 12 10 11.5 g10 8.9 7.8 7.6 5.8 where the rows represent the genes and there are two conditions "control" and "treatment" which is further subdivided into "L1", "L2" and "L1" and "L2" respectively. I would like to make a boxplot of these expression values in the following way and represent them as a boxplot ??

Importing Excel Data for Isovolume Rendering Paraview

心已入冬 提交于 2019-12-11 10:37:42
问题 I am trying to visualize heat intensity data(0 to 1)based on xyz . I have the data in a excel file and also in a csv file. In csv, the format is as follows: x, y, z, scalar 0, 1, 1, 0.489324 1, 1, 1, 0.899 . . . Each unit on an axis represents one voxel. There are totally 12 voxels along each axis. I would like visualize something close to this -> https://www.youtube.com/watch?v=UMnIwdQhZE4. How do i import either an excel data or csv into paraview? Is there a way to copy paste values from

Lattice's `panel.rug` produces different line length with wide plot

家住魔仙堡 提交于 2019-12-11 10:31:13
问题 When producing a wide plot in lattice with margins that include panel.rug() , the length of the lines in rugged margins is longer in the y-axis than x-axis: library(lattice) png(width=800, height=400) xyplot(Fertility ~ Education, swiss, panel = function(x, y,...) { panel.xyplot(x, y, col=1, pch=16) panel.rug(x, y, col=1, end= ...)}) dev.off() I would like those rug lines in x- and y-axes to be the same length regardless of the shape of a plot (note: right now the rug lines will only be the

Adding text , image to asp.net chart control

故事扮演 提交于 2019-12-11 10:27:18
问题 I am using asp.net chart control to display chart on my website , below is the snippet of it: The issue is i want to add the text and an arrow line on each point , so for instance on the point (60,october) I want to write text at this point: projection was highest and an arrow image. Is it possible to acheive something like this, any suggestion or assistance will be highly appreciated, below is the code i have used to generate this chart: double[] yValues = { 15, 60, 12, 13 }; string[]

Adding a TextBlock (or label) on the end of a LineSeries DataPoint of a DataVisualizationChart

旧时模样 提交于 2019-12-11 09:16:46
问题 I'm creating a User Control componente of type DataVisualization.Chart. Right now, he accepts 4 range limits (1 range minimum of accept value and 1 maximum, also 1 range minimum of warning value and 1 maximum warning range value). So far, so good. It works. But i need to add a TextBlock (or label, or TextBox, whatever) at the end of the LineSeries. This is my actual LineSeries: Now i need to make something like this: Even if the result is not the same, i need to put a label or textblock at

Need help to solve the Unnamed and to change it in dataframe in pandas

喜你入骨 提交于 2019-12-11 08:54:39
问题 how set my indexes from "Unnamed" to the first line of my dataframe in python import pandas as pd df = pd.read_excel('example.xls','Day_Report',index_col=None ,skip_footer=31 ,index=False) df = df.dropna(how='all',axis=1) df = df.dropna(how='all') df = df.drop(2) 回答1: To set the column names (assuming that's what you mean by "indexes") to the first row, you can use df.columns = df.loc[0, :].values Following that, if you want to drop the first row, you can use df.drop(0, inplace=True) Edit As