Skip to main content

Questions tagged [matplotlib]

Matplotlib is a plotting library for Python, built on NumPy and often used interactively with IPython. Its compact "pyplot" interface is similar to the plotting functions of MATLAB®.

5 votes
1 answer
383 views

I have been working on a project for some time and have let one Python file grow into a huge file that tries to do everything. The structure is pretty flat, and I don't like it. I've used other ...
6 votes
2 answers
148 views

I have implemented the following Markov chain Monte Carlo MCMC algorithm for the German tank puzzle found here. I just want to make sure everything is legit and that I am not getting the right answer ...
7 votes
1 answer
299 views

For plotting I often use a dictionary that contains my data of interest, regarding my numerical simulations. For example I have a numpy array - let's call it ...
2 votes
0 answers
114 views

Recently I posted an answer on a question about Bézier curve calculations. As a micro-synopsis: there are three implementations of De Casteljau's algorithm here, including the original poster's, AJ ...
3 votes
1 answer
66 views

I have been working on some code that produces a live graphic of a graph and blocks moving. It works in theory but does not look like how I want. The animation runs very slow when showing both the ...
4 votes
1 answer
88 views

I defined a function that generates tables and creates countplots and barplots based on the arguments that it receives. But the snippets of code inside the function are repeated several times, which ...
6 votes
2 answers
124 views

I’ve written a small Python module to generate mock Slack workspace data, build a user–user interaction graph, and surface complementary collaborators based on skill sets. The key features are: Data ...
7 votes
1 answer
242 views

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 ...
2 votes
1 answer
121 views

I am implementing Simulated Annealing to the Travelling Salesman Problem, plotting a graph of temperature (x axis) and cost (y axis) and animating using cv2. ...
7 votes
1 answer
140 views

I would like to share a matplotlib real-time monitor plot that I needed for another application. The basic trick is to reverse the time, so that t=0 is now and t=...
5 votes
1 answer
150 views

The idea is that I have a subset of the movements of material of a factory (over 700k rows), and I want to separate these movements by the reference of each product to plot the stock of each product ...
3 votes
1 answer
97 views

I have code here for predicting temperature across months. This is the dataset that I was using: https://www.kaggle.com/sumanthvrao/daily-climate-time-series-data I used a SARIMA model, and looking at ...
6 votes
1 answer
158 views

I did an OOP to make the 2048 game using Matplotlib visualization. The color dictionary is for setting different colors to each number in the game. There are two ...
6 votes
1 answer
1k views

I have made a 3D mesh. See below: And the code below: ...
6 votes
1 answer
460 views

I've written a Python script to solve a system of coupled differential equations and then use the results to solve an eigenvalue problem. The full problem is: \$\frac{d^2}{dr^2} K(r) = \frac{K(r)}{r^2}...

15 30 50 per page
1
2 3 4 5
12