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
3
votes
1
answer
96
views
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 &...
3
votes
1
answer
119
views
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:
...
4
votes
3
answers
668
views
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 ...
1
vote
1
answer
92
views
Blackjack optimization in python (Update)
A little while back, I made a post on blackjack using object oriented programming. I've begun running simulations under it, it runs fairly quickly but I know there is always improvements to be made. I ...
4
votes
2
answers
328
views
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 ...
1
vote
1
answer
76
views
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 ...
1
vote
1
answer
60
views
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 ...
0
votes
1
answer
35
views
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 ...
3
votes
1
answer
71
views
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 ...
6
votes
2
answers
583
views
groupby in pandas and plot
I have a csv file that looks like this:
...
1
vote
1
answer
213
views
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 ...
0
votes
1
answer
126
views
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 ...
1
vote
1
answer
42
views
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 ...
1
vote
1
answer
96
views
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 ...
1
vote
1
answer
94
views
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 ...