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®.
177 questions
5votes
1answer
413views
Implementing a joint differential equation and eigenvalue solver
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}...
3votes
1answer
101views
matplotlib color N-slope-normalization
Based from the source code of the TwoSlopeNorm color normalization of matplotlib, I tried to implement a more general normalization that can handle any number of &...
3votes
1answer
126views
Collatz conjecture plots (python)
I have tried to improve my code with the suggestions I recieved in my old question about Collatz conjecture Here is the new code: ...
4votes
3answers
685views
Plotting Collatz conjecture values - Python
I am writing a program to display the behavior or certain seeds when you apply the Collatz conjecture algorithm to them. I would like to know what I should change and also if there is a way to see ...
4votes
2answers
339views
Optimizing Multiple Subplot Visualization and Navigation in Matplotlib
I have implemented a class in Python using Matplotlib for visualizing multiple subplots along with navigation buttons to move between different subsets of data. Each subplot displays a contour plot ...
1vote
1answer
98views
pyqt6 UI for displaying streaming data to two plots and an image display
So I have a large application that I've been writing. One part of that application is responsible for displaying images taken from a camera and plotting two graphs. I've successfully stripped out the ...
2votes
1answer
70views
Extending die roll simulations for complex data science tasks
I've developed a Python script that simulates die rolls and analyses the results. I'm now looking to extend and modify this code for more complex data science tasks and simulations. Is this code ...
1vote
1answer
37views
Change the appearance of a log graph with two x axes
I would like to improve the overall look and feel of the two log graphs generated by the Python code below. The first graph represents the optimized methods while the second graph represents the ...
3votes
1answer
78views
Simulate evolution of a group of cells
The following code simulates the (simplified) concept of evolution of cells. They can reproduce, grow older and have a fitness which modifies their chance of survival. Using matplotlib, graphs are ...
7votes
2answers
608views
groupby in pandas and plot
I have a csv file that looks like this: ...
2votes
1answer
231views
Plotting correlation matrix with Seaborn and pandas
I try to plot the correlation matrix of a Pandas DataFrame. As the diagonal elements are always ones, and the matrix is symmetrical, so I can get rid of most than a half of the squares without loosing ...
1vote
1answer
144views
Plot the frequency of occurrence, using shortest string as bounds
Preface: Before anyone suggest using pandas, no I don't want to use pandas, only pure python please. The concept of my code is quite simple, given some list of strings in a text file formatted as such ...
1vote
1answer
45views
Plotting determinant probabilities
This is a fun exercise that tries to answer the following question: if the elements from a square matrix are randomly chosen from 0 to 9, is it more like that the determinant would be even or odd? I'm ...
1vote
1answer
104views
Create charts after querying database
I'm at the end of the IBM Data Analyst course, and I wanted to ask for a rating of a piece of code I wrote as a solution to its exercises from the final chapter. I know I could write it on the forum ...
1vote
1answer
100views
Plot time windows based on interested value
I use the following code to identify some interested values into a dataframe and them plot a time window before and after that value appeared. It works very well, but I would like to know if there is ...