Questions tagged [data-visualization]

Plotting data graphically, static or interactive.

Filter by
Sorted by
Tagged with
1 vote
0 answers
40 views

Python fractal tree generators

I wrote the scripts several days ago, they do exactly what I intended, but the performance is not very good, I am still stuck on for loops and don't know how to vectorize things, I wrote both scripts ...
user avatar
3 votes
1 answer
42 views

Colored bar plots with confidence intervals

I needed to create a bar plot that show: the mean from some series; them 95% confidence interval; and, bars might be colored blue if they are definitely above this value (given the confidence ...
user avatar
1 vote
1 answer
63 views

Show different concentrations on scatter plots with different colors [closed]

I have an app which parses data files on the clients browsers and displays a scatter chart. This is an example of a scatter chart with 10,000 data points: This is an example of a scatter chart with 1....
user avatar
  • 221
1 vote
0 answers
62 views

A collection of Python functions that fill a given region with rectangles

These are what I was working on in the last few days, I wrote a bunch of functions that fill a given region with rectangles of different colors. The functions can: Randomly split a region into sub ...
user avatar
3 votes
0 answers
42 views

Plot a 2D vector field with radial symmetry in Python

I computed a 2D vector field U = (u(x,y), v(x,y)) with radial symmetry, parametrized as (u,v) = a(r) (x,y) + b(r) (-y,x), where a(r), b(r) are given as solution of an IVP which I solved using ...
user avatar
  • 151
5 votes
1 answer
209 views

Formatting a table using unicode symbols in python

The goal of the project is to take in input for a data, perhaps in the future as a csv, then print it out using UNICODE box-drawing characters. The main function ...
user avatar
  • 151
5 votes
0 answers
54 views

A Python 3 script that generates art using matplotlib

I am always super interested in both science and art, science and art are two different ways to describe the objective reality, they are two sides of the same coin, in many areas they overlap, and ...
user avatar
3 votes
1 answer
52 views

Call-flow graph from Python abstract syntax tree

Below is my code for building a call-flow graph from a Python abstract syntax tree. I'm not satisfied with it because the algorithm is very complicated. Perhaps much more complicated than it needs to ...
user avatar
1 vote
0 answers
57 views

Python Sorting Algorithm Visualizer with Pygame

So I've written a Sorting Algorithms Visualizer according to this tutorial, but made some changes and add some features of my own. The visualization is made with Pygame (Which I never used before). ...
user avatar
  • 181
7 votes
3 answers
392 views

Draw a 2d graph using slashes

Given a list of integers a 2D graph has to be plotted taking 1st, 3rd, 5th, ... numbers as upward slope and 2nd, 4th, ... numbers as downward slope. I have used a Python list to do it. Is there any ...
user avatar
3 votes
0 answers
64 views

Cryptomarket data visualization

For a hobby project I want to visualize the current crypto market in bubbles. The idea is to clone cryptobubbles.net. I've already made a prototype at the moment, but the frames are on the low side. ...
user avatar
1 vote
1 answer
24 views

Batch generating histograms of images in Matlab

I am attempting to plot histograms for batch of images in Matlab. The file structure of input images and the experimental implementation are listed as below. File structure of input images The matlab ...
user avatar
  • 3,546
3 votes
1 answer
84 views

Three-dimensional DCT spatial frequency components illustration

I am attempting to make three-dimensional discrete cosine transformation spatial frequency components illustration. The 3D cubes is used to present the level of each coefficient. The more bright the ...
user avatar
  • 3,546
0 votes
0 answers
132 views

R ggplotly with hovermode = "x unified"

I managed to get this ggplotly graphic: It uses the layout option hovermode = "x unified" (see https://plotly.com/r/...
user avatar
2 votes
1 answer
46 views

Creating table for placing images in LaTeX

I am attempting to create a table for placing images in LaTeX. The first column is the (image) index, the second and third columns are images from different folder. For example, in the row with index =...
user avatar
  • 3,546
3 votes
1 answer
86 views

Javascript Word Vectors Demo

This is my WIP attempt at an open-source web demo for exploring word vectors as part of my research. The functionality will be explained separately from the site. It is also my first time using HTML, ...
user avatar
  • 818
0 votes
1 answer
53 views

Comparing global sales of video game publishers

I am trying to create a function which can visualize(compare) two items of 'Platform', 'Genre' and 'Publisher' according to the 'Global_Sales' in different 'Year'. The DataFarame looks like: Code: <...
user avatar
2 votes
1 answer
181 views

Simplify a complex KQL Query

The situation is, I have two fields in a database (or that can be derived) - when the message was received (Received, of type ...
user avatar
1 vote
0 answers
151 views

Vega lite plot rendering with Yew (rust + wasm)

I wanted to render some Vega plots in a rust+wasm web application I've been building with Yew. I'm a bit new to Rust, so I'm looking for feedback on runtime safety and stylistic issues. I was ...
user avatar
  • 111
6 votes
1 answer
180 views

Sinewaves and FFT plotter

I am trying to code a sin wave with 5 sliders: frequency, amplitude, phase change, number of data points, and time. I am currently trying to link my phase change slider with my graph so that it ...
user avatar
  • 91
2 votes
0 answers
50 views

GNUPlot Code for Plotting Three Dimensional Data

I am trying to plot three dimensional (multiple plane) data onto figures with various perspective view. The input data is tab-separated values in multiple file, and each file represent each plane. The ...
user avatar
  • 3,546
1 vote
0 answers
24 views

normal distribution line does not show up when plotting [closed]

I am plotting a distribution of 10,000 samples of sum of 100 poisson variables, and overlaying that distribution of the approximate normal distribution. However, the normal distribution line does not ...
user avatar
  • 111
4 votes
1 answer
829 views

Converting location names into country names in pandas dataframe

I have a dataframe df such that: print(df['user_location'].value_counts()) ...
user avatar
  • 239
5 votes
2 answers
317 views

Sorting algorithm visualizer in C++ and SDL2 Improved

Original post: Sorting algorithm visualizer in C++ and SDL2 I followed the advice you gave me and improved my code. I also added two more sorting algorithms. I'm mainly looking for code readability ...
user avatar
  • 879
19 votes
1 answer
2k views

Sorting algorithm visualizer in C++ and SDL2

I finished a sorting algorithm visualizer (for now only uses bubble sort) and this is the code. I'd like some suggestions to improve the memory usage or time elapsed. Built with Cmake and Ninja on ...
user avatar
  • 879
1 vote
0 answers
44 views

Sorting Algorithm Visualiser in Javascript

I'm new to Javascript and Web Dev in general, so they'll likely be some conventions that I'm not aware of. I'm at an odds of whether to use Javascript's functional features more. In my opinion it's ...
user avatar
  • 429
-2 votes
1 answer
69 views

This code demonstrates the central limit theorem. Is this code "Pythonic"?

I am new to Python, so I am interested in knowing if I am efficiently using python for this project. This program is meant to simulate the Central Limit Theorem. It uses sliders to adjust the number ...
user avatar
5 votes
1 answer
2k views

Tkinter GUI for running HPLC pumps, real-time data visualization

What I made I used Tkinter to write a GUI to run some HPLC pumps for my work. The application sends some messages to the pumps via serial connections, reads a response, then logs data to a csv file. ...
user avatar
  • 83
4 votes
1 answer
46 views

Advice on path-finding visualisation program

Im looking for some help on improving my code which visualizes path-finding algorithms. The code is working however I know it can be improved. Any suggestions would be appreciated. Github code - ...
user avatar
7 votes
1 answer
874 views

This is a sorting algorithm visualization program

Configs.java ...
user avatar
  • 73
7 votes
0 answers
156 views

Multithreaded HD Image Processing + Logistic reg. Classifier + Visualization

[I'm awaiting suggestions for improvement/optimization/more speed/general feedback ...] This code takes a label and a folder path of subfolders as input that have certain labels ex: trees, cats with ...
user avatar
1 vote
0 answers
52 views

code plots - spatial data

I am an absolute newcomer in R. For my bachelor thesis I worked with spatial data. I did many plots with the normal "points"-function. I already have my results, but would like to improve my code. ...
user avatar
2 votes
1 answer
568 views

Forex Simulator in Python using pandas and matplotlib

Description: This would make a first part of a currency exchange simulator The first phase includes downloading currency historical data from histdata.com api, plotting given period and given time ...
user avatar
3 votes
0 answers
33 views

Browser-editable SVG diagrams using JS & SVG.js

[This is my first question to Code Review and it might be a bit too much.] I want to give users the means to draw a simple diagram in the browser, and because it is partly a self-education project ...
user avatar
  • 131
5 votes
2 answers
174 views

Haskell Graphing Module (Gloss)

I've been slowly learning Haskell over the past few months. I made a small module to graph functions using Gloss, and I would like feedback on how idiomatic it is (looking for ways to simplify using ...
user avatar
  • 443
5 votes
1 answer
83 views

Fetch, plot, and send security incident statistics with Excel

TLDR: I don't develop for a living. If someone could point me in the right direction to make my script more readable/pythonic I would appreciate the assistance. In particular I'm struggling with the ...
user avatar
  • 161
4 votes
2 answers
115 views

Query to plot a histogram of song ratings

I wrote code to plot a rating distribution, which looks like this: The most important function is the stats function: ...
user avatar
  • 243
12 votes
1 answer
3k views

Predator-prey simulation

I made a random-walk predator-prey simulation that focuses on individual animals instead of the (maybe) more common array-based approach. I'd like to hear your opinion about this: how could the ...
user avatar
  • 405
5 votes
1 answer
708 views

Draw a spark line with SwiftUI

I am using a set of data points (currently randomly generated), and drawing a line graph inside a box: ...
user avatar
  • 161
0 votes
0 answers
31 views

Kotlin HTML timetable visualisation generator

A Kotlin class that I wrote fairly early on while learning Kotlin which is used by another program to build and generate HTML visualisations of timetables. I'd be grateful for any feedback, especially ...
user avatar
6 votes
2 answers
257 views

Mandelbrot rendering code in R

I'm trying out a new continuous histogram coloring method for Mandelbrot rendering in R, and since it requires three loops (three passes), each of them doubly nested, there should be a way to ...
user avatar
  • 163
3 votes
0 answers
64 views

Django project for events of the day, grouped by keywords in common

I have made a website where people write about their day and see it analyzed. In particular, the website takes event titles and groups them together if they have any common words (after stemming the ...
user avatar
  • 391
6 votes
1 answer
139 views

Graphing refugee movements using plotly in Python

I've created a simple data visualization in python that shows the movement of refugees around the world. The code works but I feel it is a bit slow. it takes about 10 s (on my hardware at least) to ...
user avatar
3 votes
1 answer
88 views

Wiki Link Mapper — A webcrawler which crawls links recursively and prints them into a graph

I would like some suggestions on how to make it better and also if any features that i should add to this Script. I am using beautifulsoup,requests for scraping and networkx for plotting the graph. ...
user avatar
4 votes
1 answer
117 views

CV written in LaTeX

I've created a CV eager for corrections. Once it is properly written it'd be converted into a template, in order to share it with the community. Can you suggest some starting corrections or ideas? (I'...
user avatar
3 votes
1 answer
159 views

Plot ROC, PR, and PRI curves in C# using pre-calculated coordinates

I have written a small program in C# to plot ROC, PR (equal to AP) and ...
user avatar
  • 193
1 vote
0 answers
23 views

Google ChartWrapper bar formatted table

The end result is a bar formatted table chart that has expanding and minimising rows. The code below works fine but I'd like to know if there is a cleaner way to achieve the same result (see JSFiddle ...
user avatar
  • 11
3 votes
1 answer
66 views

Bar graph of Easter date distribution

Computing Easter for a given year is a classic computational problem. It is also one of the few cases when code seems to just have to live with magic numbers. Alternative to magic numbers: Decoding ...
user avatar
1 vote
0 answers
26 views

Salary-structure report using a web-presentation

I had to create a report which presents the salary structure of a firm. The data needed was provided by the client as CSV-files. I used PHP for the reading and preprocessing of the data. The actual ...
user avatar
  • 3,758
2 votes
0 answers
216 views

Angular polling and plotting component using Firebase

I could use some help refactoring my component and service. I have a lot of nested logic and wasn't sure what I could do to improve this. I'm new to Angular 7 and their piping syntax. I suspect this ...
user avatar