Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

I am using Matplotlib in Spyder and I am trying to change the figure size with figsize, but it does not seem to make any visible difference no matter what values I use. For example, even if I change: ...
Hamza Hussian's user avatar
3 votes
2 answers
75 views

I have a sensor time series with these properties: ~250,000 data points at high sampling rate over ~12 hours ~11 continuous segments separated by 30-40 minute gaps (sensor goes offline periodically) ...
requiemman's user avatar
0 votes
1 answer
76 views

How can I make this plot using Seaborn or matplotlib? A key requirement is that the plot code be less than about 10 lines (this code is meant to go in a book and should not require a PhD in matplotlib)...
Ian Gow's user avatar
  • 3,577
1 vote
2 answers
73 views

I have the following plot, using a symmetric log scale: from matplotlib import pyplot as plt from matplotlib import ticker (_, ax) = plt.subplots() ax.plot([-100, -1, -0.5, 0, 0.5, 1, 100], marker='o')...
Ilya's user avatar
  • 657
Advice
0 votes
3 replies
52 views

I would like to make a 3D surface plot (ideally like the one seen here https://matplotlib.org/stable/gallery/mplot3d/contour3d_3.html) from a 3D array. How do I take one 3D array and create the three ...
Polly Gill's user avatar
1 vote
0 answers
76 views

Hi I was trying to implement a plot function for a DFA class, using networkx in python. def plot(self): G = nx.MultiDiGraph() nodes = self.collect_nodes() for n in nodes: ...
Jip Helsen's user avatar
  • 1,426
3 votes
1 answer
117 views

I'm trying to plot actual vs predicted values using matplotlib. Here is my code: import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn....
Rima 123's user avatar
2 votes
2 answers
139 views

I've been scratching my head over this way too long now, but can't find any answers online, and I hope someone can shed some light on this. I'm working with Pandas and a csv file, from which I need to ...
Rerun's user avatar
  • 57
Advice
1 vote
1 replies
62 views

I have a plot with categorical labels on the y‑axis, similar to this: I would like to display a symbol (e.g., +) between every pair of y‑axis tick labels, such as between eight and eight u two. Is it ...
jeiglsperger's user avatar
Tooling
0 votes
2 replies
31 views

I am running matplotlib in Python. I have a histogram showing data from 36 different channels, each colored by a cmap gradient. I want to be able to put a gradient in my legend, possibly through a ...
Andreas Pettersson's user avatar
6 votes
2 answers
125 views

How to fix these kinks in the norm_pan and norm_tau curves? I tried using a quite high resolution and logarithmic spacing when defining t, but this did not fix the problem. import numpy as np import ...
Márton Horváth's user avatar
Tooling
0 votes
2 replies
64 views

I'd like to do something like pyplot.fill_between but I want to shade areas where a plot goes above a threshold (0.5) in the x-axis. For example, here's a plot I produced using pyplot.fill_between and ...
Petra's user avatar
  • 385
Advice
0 votes
2 replies
79 views

I have a while loop that is running 5000 times a second. Each time it runs it recalculates a whole ton of variables and then adds the value of a couple of those varibles to their own lists. After a ...
A Four Headed Deer's user avatar
Advice
0 votes
5 replies
99 views

I'm making an orbit decay simulation and I don't know how can I make the simulation stop/break when the object collides with the surface. It keeps simulating inside the planet's surface and doesn't ...
Diniz Vitor's user avatar
-3 votes
2 answers
93 views

I am working on a Python project and I need to generate a 2D graph using matplotlib. The data is stored in a text file with two columns (x and y values). Example file: 1 10 2 20 3 30 4 40 How can I ...
Mihaela Diana's user avatar

15 30 50 per page
1
2 3 4 5
4854