Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of -3
2 answers
122 views

I want to plot variables against timedate but I want different graphs for different types of data. For example N2O_flux against time but the the graphs only shows data point of fertilizer LowN. This ...
Score of 3
2 answers
122 views

I am running Python 3.13.14 on Windows 11, using VS Code 1.100.3 with the ms-python extension, inside a conda environment managed by Miniforge3. matplotlib version is 3.11.1, PyQt5 (pyqt 5.15.11) is ...
Score of 3
1 answer
141 views

I am using ax.pcolor() to create a plot in polar coordinates, and I would like to add a radial axis-like line at a fixed angle (e.g., 250 degrees). Specifically, I would like the axis-like line to: ...
Score of 2
2 answers
288 views

I'm trying to change a pixel to red. However, when I run the code, the pixel remains unedited. Can you help? import cv2 as cv import os import matplotlib.pyplot as plt def readAndWriteImage(): ...
Score of 9
1 answer
958 views

I've coded Conway's Game of Life in NumPy and Matplotlib. It works, but I want to alter the colours of the cells based on their numbers of neighbours. My code does set background colour and cell ...
Score of 4
2 answers
186 views

I want to show the distribution of angle estimations using a boxplot. The problem is that angles wrap around (I chose +-180° as the wrapping point, but the same applies to 0/360°). Matplotlibs boxplot ...
Score of 2
1 answer
123 views

I have defined a plotting method (in a class, where self.steps is a list of lists of dictionaries, containing different "feature": value associations. Also self.path_alignments here is a ...
Score of 0
1 answer
107 views

I was creating visuals/graph using matplotlib. So far, I need to create a data labels with the follow data sample. cellvalue1 = [1,2,3,4,5,6,7,8,9,10,11,12,13] cellvalue2 = [1,2,3] fig, ax = plt....
Score of 0
1 answer
120 views

I realize this is a broad question and will depend case by case. Really just looking to explore new Python libraries and pandas since there are so many out there! My main tasks involve moving data ...
Score of 0
3 answers
221 views

Plots of different graphs fitted using the same function I tried fitting my plots, which are supposed to show a negative exponential using the same function, but predictions for L_infty are really ...
Score of 4
1 answer
100 views

import numpy as np import matplotlib.pyplot as plt x = np.linspace(1, 6, 10) plt.figure() for i in range(10): T = i + 20 Fit = 4 * x - ( 2 + i) noise = np.random.normal(loc=0, scale=1.0, ...
Score of -1
1 answer
108 views

In my Visual Studio Code is not importing these programs with the following script import matplotlib.pyplot as plt import meteostat as ms Are there "pandas" or "pip" commands I ...
Score of 4
1 answer
166 views

I have a python script, test.py: import matplotlib.pyplot as plt plt.plot() plt.show() plt.savefig("/home/user/Desktop/test.png") When I run it in a virtual environment using this, user@...
Score of 0
1 answer
83 views

I am building a Streamlit dashboard with two columns: Left: a Plotly pie chart Right: a calendar heatmap using calplot My issue is that I cannot make both visualizations have the same height. Even ...
Score of 0
2 answers
111 views

So I have the following problem: I have several pandas Series's which I want to graph using matplotlib's subplot. I came up with the following code items = [expcat, inccat, expmonth, incmonth] fig, ...

15 30 50 per page
1
2 3 4 5
4850