All Questions
526 questions
2
votes
1
answer
39
views
Create background for a 3D and 2D plots
Can someone help me create a layout for plots with the following structure:
A CD
A/B EF
B GH
where A,B are 3D plots (fig.add_subplot(241, projection='3d')) and C,D,E,F,G,H are regular 2D plots. A/...
1
vote
0
answers
73
views
Why is there an offset between grey bars and width of arrows in upper limits
For the image shown below, which shows upper limits in red arrows between two variables X and Y and on the right side there is Z axis showing value of grey bars, why is their an offset between grey ...
0
votes
0
answers
172
views
<Figure size 640x480 with 0 Axes> problem during plotting in matplotlib (No figure shows)
I am trying to plot a PDP plot using Matplotlib, but I find an error that indicates that figures were created but nothing was drawn on it.
enter image description here
This is my code:
def ...
-1
votes
1
answer
304
views
How to alter the size of the arrow while plotting upper (lower) limits in matplotlib?
I want to represent unconstrained data with an arrow marking upper (or lower) limit. To do this, I generate a boolean array lim and feed it as: plt.errorbar(x, y, yerr=y_err, uplims=lim, ls='none'). ...
0
votes
2
answers
52
views
Plotting three columns in the form of a matrix in matplotlib
I have three column data file. First and second columns are x and y axes, respectively. I would like to give color to the plot in the form of a matrix as shown in an example figure (with different ...
-1
votes
1
answer
522
views
How to properly plot a candlestick chart alongside trendlines but considering a y axis with percentage change values using MatPlotLib and Python?
When I was trying to compare 3 financial assets based exclusively on its price series, I realized that to do so all of those price series had to be converted to price change series, so that way, one ...
2
votes
0
answers
231
views
Trying to change axis in rpt.display() raptures
Hi I'm plotting timeseries like this with raptures package :
enter image description here
And I want to change axis of this plot into this range(2000,2022)
This is the main code:
start_time = 2000
...
0
votes
0
answers
50
views
How to 3D plot inside subplots
I am having trouble plotting a 3D plot inside one of the subplots. I did get the plot but there's an extra layer of labelling that I want to remove.
This is my code and plot:
fig, ax = plt.subplots(3,...
2
votes
0
answers
78
views
How to adjust error bars position in matplotlib stacked bar plot?
Im trying to plot a stacked bar plot in matplotlib including error bars for each slice in the stack. The problem is, that at the moment, the error bars are positioned in y-orientation at the mean ...
2
votes
1
answer
76
views
Increasing the efficiency of a python code by using arrays
I have the following python code:
import matplotlib.pyplot as plt
import numpy as np
class bifurcation_diagram(object):
def __init__(self):
self.omega = []
self.theta = []
...
0
votes
1
answer
63
views
How to Plot few line graphs for similar values in x axis?
I have this dataframe; which contains processed data from a video using a facial recognition system. I wanted to plot the variation of age, emotions and gender with the frames.
i tried to plot ...
-2
votes
1
answer
143
views
How can have multiple plots output from python, one 2D, one 3D
I want to make a plot of an orbit and it's energy with respect to time. I want to have the program output a 3D figure of the orbit, and a 2D figure of the total energy against time. I have been trying ...
0
votes
1
answer
347
views
Plotting pcolormesh in python from csv data
I am trying to make a pcolormesh plot in python from my csv file. But I am stuck with dimension error.
My csv looks like this:
ratio 5% 10% 20% 30% 40% 50%
1.2 0.60 0.63 0.62 0.66 ...
-1
votes
1
answer
50
views
Plotting Complex values with Number of iterations in Python
I am solving Newton ralphson problem in which I am getting complex values of the first derivative, I have to plot the values of the first derivative vs the number of iterations, How do I plot the ...
0
votes
2
answers
86
views
How to adapt this python script to apt installed matplotlib vs pip3 installed
I have a script (MWE supplied)
import matplotlib.pyplot as plt
import matplotlib
s_xLocs = [864]
s_yLocs = [357]
s_score = [0.33915146615180547]
sMax = 0.34704810474264386
for i in range(len(s_xLocs))...