Matplotlib plots in PyQt6, embedding charts in your GUI applications

In a previous tutorial we covered plotting in PyQt6 using PyQtGraph. PyQtGraph uses the Qt vector-based QGraphicsScene to draw plots and provides a great interface for interactive and high performance plotting. However, there is another plotting library for Python which is used far more widely, and which offers a richer assortment of plots — Matplotlib. … Read more

chart.js – Failed to display data correctly for charts of more than one item in Chartjs

/*————– Color ————–*/ const ColorBac = [“rgba(255, 0, 50, 0.2)”, “rgba(27, 68, 128, 0.2)”, “rgba(246, 162, 30, 0.2)”, “rgba(1, 49, 32, 0.2)”]; const Colorborder = [“rgba(255, 0, 50, 0.6)”, “rgba(27, 68, 128, 0.6)”, “rgba(246, 162, 30, 0.6)”, “rgba(1, 49, 32, 0.6)”]; let getColor = function getColor(i) { var obj = { background: ColorBac[i], border: Colorborder[i], … Read more