Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
319 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 ...
Ξένη Γήινος's user avatar
3 votes
1 answer
755 views

Implementing histogram in python

I was trying to implement my own version of matplotlib's hist function and I came up with this: ...
Amirhossein Rezaei's user avatar
2 votes
2 answers
115 views

Downloading COVID data and uploading graphs

So this is a project I have been working on for the last few weeks. Just started learning Python. Started out with bash scripting and got the itch to learn more. Anyway code fetches covid-19 data from ...
drebrb's user avatar
  • 137
2 votes
1 answer
54 views

Hardware driven data processing and ploting in need of better control flow

This is code for a measurement setup that receives a steady stream of UDP data, finds the trigger in one channel and operates on the data in the other channel to enhance the signal and remove noise, ...
Andreas Schuldei's user avatar
4 votes
1 answer
246 views

Project structure for a reactor model built in Python

I use Python for various computational reactor modeling activities. While there are many components to the models I develop, the basic structure of the project folder tends to be similar to the ...
wigging's user avatar
  • 265
4 votes
1 answer
197 views

Live plot with many subplots

I have a stream of sensor data which I want to visualize in a plot with many subplots. Plotting the data is a real bottleneck in my code. Right now I get with small resolution only 16 FPS which is far ...
Gilfoyle's user avatar
  • 1,167
3 votes
1 answer
370 views

Centered finite difference approximation for edge enhancement

I implemented a centered finite difference approximation for edge enhancement in images. The difference approximation has a step size h of the partial derivatives in the x- and y-directions of a 2D-...
Winston Smith's user avatar
3 votes
1 answer
100 views

Time-dependent state machine with two outputs

Given a class BasicDataFeed whose purpose is to feed questions and answers into an artificial neural network, which is tested in a non-negotiable manner as follows: ...
Seanny123's user avatar
  • 1,599
5 votes
1 answer
5k views

A matplotlib scatter function inside a for loop

This function is working exactly as I want, only, it's taking too long. For speed ups, I've tried to do as much as I can before the main for loop by declaring ...
Ben Carr's user avatar