Skip to main content

All Questions

0 votes
1 answer
256 views

How do I make a multi panel plot like this?

I have tried using gridspec, everything looks fine but mi main plot doesn't fill all the space. [1]: https://i.sstatic.net/frHEN.png [2]: https://i.sstatic.net/MA1Sg.png This is my code: import h5py ...
Javier Gómez's user avatar
0 votes
0 answers
51 views

Blocking a big number from appearing in PLOT Pandas

Here's my issue : i have a dataframe that reads from a csv like this DAY;FILE_TYPE 20210101;csv 20210102;xml 20210102;xml 20210102;xml 20210103;doc i want to plot the count of evry type of file ...
M.Bennani's user avatar
0 votes
0 answers
391 views

How to make real-time matplotlib faster?

I have an issue. I'm using matplotlib on a project to do some real-time programming, I used this library because it was suggested by my mentor although I think now it was not a good idea since I ...
Lemanuel Colon's user avatar
0 votes
1 answer
157 views

ticks on right side of plot un subplots enviroment

I am trying to get the ticks for my plot on the right side. (The one int he lower right corner) I've tried many of the related topics. eg. Python Matplotlib Y-Axis ticks on Right Side of Plot ...
Coolcrab's user avatar
  • 2,723
0 votes
1 answer
450 views

Overlapping density plots of multiple pandas data frame columns

import numpy as np import pandas as pd col1 = np.random.normal(0, 1, (1000, )) col2 = np.random.normal(0, 1, (1000, )) col3 = np.random.normal(0, 1, (1000, )) df = pd.DataFrame({'col1':col1, 'col2':...
Jesse Downing's user avatar
4 votes
1 answer
10k views

Merging subplots error - 'AxesSubplot' object has no attribute 'get_gridspec'

Using python 2.7x, cannot upgrade as I'm on a managed windows system. I'm trying to follow this example to merge subplots but return the following error: 'AxesSubplot' object has no attribute '...
8556732's user avatar
  • 311
1 vote
0 answers
335 views

Configuring minor grid line color/alpha in matplotlib style-sheet

Is there any way of configuring the minor grid lines to have a different default alpha or color value in the matplotlibrc file, or in a style sheet? This applies to both lines: grid.color : black ...
Trygve Leithe Svalheim's user avatar
4 votes
0 answers
328 views

Matplotlib: Streamplot arrow position

Is there a way to get/set the position of arrows on a streamline plotted with matplotlib's streamplot. I want the arrows to have the same x or y coordinate. So they all appear on one line. I know that ...
Alex Nieh's user avatar
0 votes
1 answer
82 views

Matplotlib plot doesnt reflect the ordered set of data

the issue with the following is that in a small sample, whatever label I used, matplotlib plotted in the order of x/y arrays I gave. It just doesnt apply when the dataset increase. data = {a:1, b:2, ...
dia's user avatar
  • 431
1 vote
1 answer
156 views

Set points outside plot to lower and upper limit

Maybe this question exists already, but I could not find it. I am making plots in Python. I don't want to set my axes range such that all points are included - there are some really high or really ...
astroluv's user avatar
  • 793
0 votes
1 answer
1k views

Heatmap as background of a Plot in matplotlib

I have following plot: which has been generated with this code: import pandas as pd import numpy as np import matplotlib.pyplot as plt ttc = pd.read_excel("../XLSX_Files/Baseline_Data.xlsx", ...
koapsi's user avatar
  • 67
0 votes
0 answers
35 views

matplotlib fill_between issues with y1 & y2 arguments?

I've a pandas dataframe and i'm trying to plot the data to make a bett wave mean median mad 0 4050.32 -0.016182 -0.011940 0.008885 1 4208.98 0.023707 0.007189 0....
Gyanender Gandhar's user avatar
3 votes
1 answer
2k views

How can I cut the large space at the bottom of the subplot in plotly?

I'm using plotly to generate interactive plots. In my case I'll have one table and a plot in one figure. import matplotlib matplotlib.use('Agg') import plotly.offline as offline from plotly import ...
Aaron's user avatar
  • 461
0 votes
1 answer
1k views

saving 2D animation with matplotlib

i have a problem. I would like to salve a mp4 gif of the animated plot. This is my code: import numpy as np from matplotlib import pyplot as plt from matplotlib import animation import pylab as pl ...
Luca Fichera's user avatar
0 votes
0 answers
25 views

Different Spacing for same axes in Matplotlib [duplicate]

I want to plot a graph using pyplot with different spacing for different intervals. I want to zoom in specific parts of the interval without another floating box. For example: Consider the graph and ...
Abhinav Singh's user avatar

15 30 50 per page
1
2 3 4 5
12