data-visualization

Linking plotted data with color and size sources in MATLAB

二次信任 提交于 2019-12-23 18:12:39
问题 This question is related to the question posted here, in which I outline a problem I'm facing regarding rapid visualization of 3D scatter plotted data in MATLAB during a simulation. (Sample code and data are also provided there.) As an alternative to setting the XData , YData , ZData , SizeData , and CData properties of a 3D scatter plot in MATLAB, I'm wondering if it's possible to have all of their corresponding sources be dynamically linked to points that are 3D scatter plotted. The linked

is it possible to display 3D data in Google Maps or Google Earth?

旧城冷巷雨未停 提交于 2019-12-23 13:13:17
问题 I'm trying to find an effective way to visualise feedback from some real-world sensors measuring wind speeds at various heights. Does anyone know if it's feasible to display 3D data in google maps? I was imagining 3D arrows indicating direction and wind speed. If it's possible to load a model and position it to a particular GPS position / elevation and then change its orientation to point to a particular azimuth / elevation what could work. Another alternative I was considering would be to

How to change the x axis in Graphite/Grafana (to graph by day)?

早过忘川 提交于 2019-12-23 10:04:55
问题 I would like to have a bar graph in graphite/grafana that has a single bar per day, over the week. Ideally we would have the days of the week (Monday,Tuesday...etc) on the x axis labels, and then seven bars in the graph, one for each day of the week. I can't seem to change the X axis at all though. Thoughts: I could cook the time data, and send it a fixed time since epoch value, but this results in a very thin bar on the grafana page. I could write a script to send a huge amount of metrics

Separate symbol and color in plotly legend

你离开我真会死。 提交于 2019-12-23 09:18:32
问题 I want to achieve the same result as this ggplot code with plotly: mtcars %>% add_rownames('car') %>% ggplot(aes(x = mpg, y = disp, color = as.factor(gear), shape = as.factor(cyl))) + geom_point() which results in: My plotly code is: library(dplyr) mtcars %>% add_rownames('car') %>% plot_ly(x = ~mpg, y = ~disp, text = ~car, color = ~as.factor(gear), symbol = ~as.factor(cyl), mode = 'markers') which enumerates all possible combinations of colors and shapes in the legend. Is there a way to have

Seaborn scatter plot with missing points in the figure

大城市里の小女人 提交于 2019-12-23 04:48:34
问题 I would like to visualize the selection frame I have got from my data frame df . I can not understand why seaborn seems to have some problems plotting the class named car . In the figure I obtain there are two black dots and a white one referring to this class instead of 3 blue dots as the legend reports. Actually, if I remove this class I get the same problem in another one. Do you know why? Thanks in advance. Here my code: import pandas as pd import numpy as np import random from matplotlib

Create an image filled chart in R using ggplot [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-23 04:33:10
问题 This question already has an answer here : Use a custom icon in plotly's pie chart in R (1 answer) Closed last year . I'm trying to create a chart like the below image; essentailly its a filled shape denoting a percentage (most likely an image of a human, but this could be anything theortically). I've managed to do this is Excel, albeit with a lot of botching of bar charts. But is there a way to do this in R, preferably using ggplot? I've read the similar question Use an image as area fill in

Directed graph - node level CSS styles

女生的网名这么多〃 提交于 2019-12-23 04:22:26
问题 I found this excellent example and sample code for drawing directed graphs - http://bl.ocks.org/cjrd/6863459 However, the graph-creator.css file defines a global style for all nodes. What if I want to assign different styles to certain "special" nodes from all other nodes (I want them to be different shapes and also differently colored and if possible also a different transparency). How would I modify this code to add these node specific effects? 回答1: You can choose to append different shapes

How to feed hour and minute data into chartJS

百般思念 提交于 2019-12-23 03:52:13
问题 I'm trying to make a line chart using Chart.js. My data is of the form: var result = [{x:"18:00",y:"230"},{x:"19:00",y:"232"},{x:"20:00",y:"236"},{x:"22:00",y:"228"}]; Where x represents the time with hours and minutes. I fed the data like this var ctx = document.getElementById("myChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'line', data: { labels: ["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00"

Visualizing the pass traffic data with Chord Diagram

狂风中的少年 提交于 2019-12-23 02:18:19
问题 I have a pass traffic data between players, here's the data, first column and first row indicate the Player Numbers. I want to visualize this data like Uber Rides. I think it was built with Chord Diagram from Bostock's. Since I almost have no experience in JavaScript, I just don't know where to begin. How can I achieve something like this? 回答1: Here is what i got with your data I just replaced the matrix array with your array [2,3,1,0,0,2,0,6,5,2,5,0,3], [0,7,2,0,4,7,0,1,2,0,3,0,2], [0,0,4,1

Avoid plot overlay using geom_point in ggplot2

[亡魂溺海] 提交于 2019-12-22 17:58:21
问题 In ggplot2, geom_point defaults to plotting over the current plot. For example, calling geom_point after a call to geom_boxplot results in the points plotted over the boxplot: ggplot(iris, aes(x = "All", y = Sepal.Length)) + geom_boxplot() + geom_point(aes(color=Species), position = "jitter") Is there a way to plot the points separately to the side, rather than over the boxplot? In my particular case I want to do this because the points obscure the plot (even with transparency, etc), a