Dec 28, 2022 | Matplotlib, Python
Buy Me a Coffee? Your support is much appreciated! demo.py import numpy as np import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv(‘data.csv’, index_col=0) indx_order = np.arange(df.shape[0]) averages = {} averages[‘Math...
Dec 26, 2022 | Matplotlib, Python
Buy Me a Coffee? Your support is much appreciated! demo.py import numpy as np import matplotlib.pyplot as plt # prepare the data x_data = (20, 35, 30, 25, -28) y_data = (25, 32, 35, 20, -22) n = len(x_data) x_location = np.arange(n) bar_width = 0.35 fig, ax =...
Dec 18, 2022 | Matplotlib, PyQt5, PyQt6, Python
Buy Me a Coffee? Your support is much appreciated! demo.py import sys import os from PyQt6.QtWidgets import (QApplication, QWidget, QPushButton, QTextEdit, QComboBox, QFileDialog, QHBoxLayout, QVBoxLayout) class MyApp(QWidget): def __init__(self):...
Nov 29, 2022 | Matplotlib, PyQt5, PyQt6, Python
Buy Me a Coffee? Your support is much appreciated! demo.py import sys import matplotlib matplotlib.use(“Qt5Agg”) import numpy as np from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure #...
Nov 24, 2022 | Matplotlib, Python
Buy Me a Coffee? Your support is much appreciated! demo.py import matplotlib.pyplot as plt import numpy as np # Step 1. Create a scatter chart x = np.random.rand(20) y = np.random.rand(20) colors = np.random.randint(1, 5, size=len(x)) norm = plt.Normalize(1, 4)...
Nov 29, 2021 | Matplotlib, Python
Buy Me a Coffee? Your support is much appreciated! Source Code: