Questions related to plotting data graphically, whether the output is static or interactive
0
votes
0answers
13 views
BigQuery Data Conversion - TypeError: not all arguments converted during string formatting [on hold]
I am following the tutorial, Codelab: Creating a BigQuery Dashboard, in order to convert my BigQuery dataset to a format suitable for Google Charts.
I am successfully able to query my data:
QUERY:
<...
3
votes
0answers
26 views
JFreeChart generic plotting tool
I have created a bit of code that plots data for a project (XY Line Chart). It works. But it isn't what I'd consider good. I am looking to improve it in two ways:
Make it more generic, so that I can ...
3
votes
1answer
35 views
Creating an area graph in iOS
I am trying to create an area graph from the upper and lower limit values.
First I created two line graph from those points as:
Sample data points are:
...
6
votes
2answers
131 views
Prompting the user for plot parameters
Below is the current working code for an ongoing project.
I am wondering if there is anything I can do to improve the code snippet below. My main concerns lie to two area. First being that I append ...
1
vote
0answers
27 views
Statistic Chart With Filter
I have created an app, which show chart, table detail of chart, with filter date. I created app with Backbone and Marionette, chart with Chartist.js, and the filter date I'm using Pikaday.js and ...
1
vote
1answer
28 views
Network graph canvas display using Tkinter
I made a little application (for windows, but easily compatible with linux by just changing some lines) for displaying a little network graph using Tkinter and Python. I basically draw lines higher ...
3
votes
2answers
83 views
Javascript bar graph representation using CSS
This js was written strictly for a visualization of a graph redesign included in a stats report within our game systems. It all works properly, but I know there has to be a much neater way to organize ...
3
votes
0answers
21 views
Data Explorer query that makes bar graphs
I wrote a query for SEDE that I think is pretty cool. It uses the currently available graphing capabilities (scatter plots) to create a bar graph. I have used it as the subject for a self-answer on ...
5
votes
0answers
105 views
Plotting charts for a large data set
I have created an automated macro which takes vehicle crash data from a .csv file and automatically creates a pivot table and plots and compares it to the previous year. The code is approximately 1400 ...
1
vote
0answers
65 views
Hearthstone mana curve Google chart
My code displays a Google chart that shows a mana curve. I'm not very experienced with Google charts, so I'd like help optimizing my code. I'd like my code to be more readable and to have fewer lines (...
8
votes
3answers
149 views
Turn logged data into fancy plot
I'm logging data from an embedded platform over UART. This gets saved to a log file and I want to process the saved log with Excel.
I have no idea whether what I did was even remotely a good solution....
0
votes
0answers
76 views
Hierarchical Data to Graph
I am using vis.js to visualize some hierarchical data. I have created a recursive routine to add nodes and edges for each group and value in the dataset.
I feel like something already exists for this ...
5
votes
2answers
85 views
Tracking Containers in a Train Station
This is a time line for control over the events of some containers in a train station.
It gets all the data to build the time line by getting a JSON from a database via REST service. The app resets ...
3
votes
2answers
50 views
K&R C Exercise 1-14: Histogram of the frequency of types of characters
This is for K&R C Exercise 1-14: basically asking to create a program that prints a histogram of the frequency of types of characters. This is done with very basic C functions/knowledge as covered ...
5
votes
1answer
45 views
CSS & JS piechart
I made a pieChart function thanks to the main CSS properties rotate:xdeg, border-radius:100% ...
12
votes
3answers
600 views
Analyze frequency and content of political fundraising E-mails
Since I'm a big politics nerd, I wanted to write a little script that would analyze the frequency and content of political fundraising emails. I signed up for the e-mails of 6 campaigns, donated a ...
4
votes
1answer
92 views
Data analytics on static file of 50,000+ tweets
I'm trying to optimize the main loop portion of this code, as well as learn any "best practices" insights I can for all of the code. This script currently reads in one large file full of tweets (50MB ...
0
votes
0answers
319 views
D3 Map Visualization with tooltip and graph
I would love if someone had any feedback on how to optimize my code, suggest better color schemes, and improve my table. I created python scrapers to get the data from the CDC and menuism to get the ...
7
votes
1answer
68 views
Git Insert Delete Graph
I attempted to recreate the github code frequency graph(example) with a daily granularity using perl and git log. How did I do, ...
5
votes
1answer
54 views
Simple plotting abstract base class and example subclass
I came across a CocoaControl ZFPlot and wanted to extend here. I ended up writing a base class (ZFPlot shown below) as well as several extensions (ZFLine, ZFScatter, ZFBar, none shown here for brevity)...
6
votes
1answer
87 views
Plotting level and temperature data from many Excel sheets
I've been working on a code that reads in all the sheets of an Excel workbook, where the first two columns in each sheet are "Date" and "Time", and the next two columns are either "Level" and "...
2
votes
2answers
126 views
Print the length of words as a vertical histogram
I thought I'd give it a shot. What I came up with is from a culmination of my last two submissions, incorporating most of the feedback from this community, including better naming of variables, ...
5
votes
1answer
542 views
Print the frequency of characters as a horizontal histogram
Well, I've used some of the feedback from my last posting to improve how I wrote this program. Mainly using the void parameter in main, initializing my int array to zero without using a for-loop, and ...
5
votes
3answers
135 views
Print the length of words as input to a histogram with horizontal bars
It works, but I'm sure there's a lot of improvement I could make here. I didn't try to get it to work for words over 10 characters in length, and I also didn't want to use built in properties like <...
5
votes
1answer
499 views
Bean Machine Simulation
I could not find a solution from my book's website (student-level access) but I feel that I am missing something that I'm supposed to learn from this exercise.
Instructions: Balls are dropped from ...
1
vote
1answer
181 views
Generic plotting wrapper (around matplotlib)
I am experimenting with making my own re-usable libraries. Therefore, I decided to start with some of the plots that I generally use during development/debugging to check what is actually inside my ...
3
votes
1answer
155 views
Plotting 2D histograms from files of matrices in R
I wrote a script to turn a file like this one into a colored 2D histogram:
...
5
votes
1answer
113 views
Parsing and plotting complex numbers
I am trying to write a Haskell application that parses a bunch of complex numbers from a Mathematica output and then produces a PPM image.
The end product looks like this:
The code to create this ...
1
vote
1answer
45 views
3D plot from lm model with a nonlinear parameter
I am trying to plot a 3Dplot of a linear regression with two variables.
My linear model:
ls = lm(mpg ~ disp + qsec, data = mtcars)
The minimum and maximum ...
4
votes
1answer
477 views
Plotting a vector field in R + ggplot
I've written a small program that draws a vector field in R using ggplot for a given differential equation.
There is a topic on the subject here however, the proposed solutions either don't provide ...
2
votes
1answer
369 views
Plotting non continuous functions and a real scatter example with Bokeh
I've written a python 3 code using Bokeh. With this code you can learn howto to plot math functions and a scatter plot with regression linear functions in a webpage. The target is how to plot ...
0
votes
1answer
32 views
updateBuildChart method with a lot of dependencies
I've some refactoring issue with one method.
This method has a lot of dependencies
...
1
vote
0answers
47 views
Matlab bins with two features: calculation and plotting
I have the following code in Matlab, which is supposed to do what I asked in this SO question. The idea is to:
Divide the temperature deadband of each agent (they are different between agents) into <...
2
votes
1answer
71 views
UPenn homework 3: histogram
Please see here for the general description.
Exercise 3: histogram :: [Integer] -> String
takes as input a list of Integer...
1
vote
2answers
135 views
Binning and calculating a huge range of data
I have a code that I'm fairly certain does what I want. Bear with me as I explain what I'm doing:
Imagine that there is 10 houses, where there can be one to an infinite number of persons. Each of ...
6
votes
2answers
281 views
Qt Custom Scatterplot
I have created a custom scatterplot in Qt and am wondering if there is a more efficient way to do it. Here is a sketch of the problem:
The layout of the plotting area consists of a rectangular ...
1
vote
1answer
268 views
Making events not trigger so often on a datatable with dc.js
I used this answer to make a table with datatables.net and dc.js. However, I detected a performance issue in this loop:
...
7
votes
2answers
380 views
2D lattice random walk plots in functional style
To practice writing code in the functional programming style, I wrote a program to plot two-dimensional lattice random walks. I'd appreciate any feedback about how to improve its "functionaliness".
<...
7
votes
3answers
1k views
Generating a histogram efficiently from the datasets in a Map
I have a map in which I store total bytes as the key and count of users as the value:
...
2
votes
0answers
167 views
Smoothing matrix for visual representation
I recently started playing around with R and am currently trying to plot GPS data points onto a perspective plot. I have a script that works and I get my desired results out of it and it works ok for ...
5
votes
3answers
4k views
Vertical Histogram
I've been been working on a vertical histogram that prints an asterisk in place of a number in a certain range (say 1-10... and so on). My code is working as required.
Is there a better, simpler or ...
3
votes
1answer
2k views
Optimizing for data import in Neo4j using py2neo
Here is my code for importing from a .csv to a neo4j graph using py2neo and cypher statements. I've noticed that it slows down significantly the bigger the graph gets. It takes several seconds just to ...