Skip to main content
-4 votes
0 answers
33 views

Recently I started learning linear algebra using Python and I came across this matplotlib and I am not sure why they use: fig,ax = plt.subplots() What does it mean exactly?
sizh's user avatar
  • 11
0 votes
0 answers
51 views

So im trying to plot a 3D figure as shown in here. The problem is that Z label is not appearing at all. Is there a way to make like the box smaller or make the figure larger so it can fit in ? Below ...
Destr's user avatar
  • 11
1 vote
0 answers
115 views

I have some figures with subplots where I compare various parameters from two tests (excel files Testdata1 and Testdata2) . Since the same two test is in all the subplots I use legend on the figure ...
KVa's user avatar
  • 11
Advice
0 votes
2 replies
96 views

I've got a class project to do, it's supposed to display the mandelbrot set with a customizable colour map and a max_iter slider. I've got the colour map radio buttons working, but I can't manage the ...
Helewapo's user avatar
0 votes
0 answers
55 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
103 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
185 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
80 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
68 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
131 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
124 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
143 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
64 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
34 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
5 votes
2 answers
150 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

15 30 50 per page
1
2 3 4 5
4853