All Questions
Tagged with python-2.7 matplotlib
1,796 questions
0
votes
0
answers
66
views
Get a Random Boolean by Percentage using tkinter
Please could you explain how to use tkinter to make an Entry widget that passes a percentage value to the function below e.g. the user enters 60 into the input field which then passes the user’s value ...
0
votes
0
answers
635
views
"ImportError: DLL load failed: %1 is not a valid Win32 application." but both Python and matplotlib are 64 bit
I am trying to run the same code on my new PC (Windows 11). I installed Python 2.7 and matplotlib in both 64 bit but I still get "ImportError: DLL load failed: %1 is not a valid Win32 application....
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
...
2
votes
0
answers
85
views
How to name a figure following its histogram name in matplotlib pyplot using savefig
I use the script
import matplotlib.pyplot as plt
import numpy as np
import yoda
def readScatter2D(histname, filename):
histos = yoda.core.read(filename+".yoda")
x = []
y = []
h ...
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 ...
1
vote
1
answer
88
views
How to ignore a value that exeed from an Axis in Python
I'm new to python.
I'm using python 2.7 and i'm using pandas plot to make a BarChart . here 's my code
my_colors = list(islice(cycle(['#AB82FB','#9A958F','#0131CC', '#EA3C00', '#22DC00','#CCC201','#...
0
votes
0
answers
138
views
How to fix "ValueError: Some errors were detected" while making contour plot in python?
import numpy as np
import matplotlib.pyplot as plt
#from matplotlib.colors import LogNorm ...
-1
votes
1
answer
402
views
Bar and line plot of the same color and line is behind the bars
I want to have a bar plot and a line plot on the same axis.
The line plot should be above the bars, colors should cycle as would be expected with two consecutive calls to plt.plot().
import matplotlib....
0
votes
0
answers
170
views
ValueError: Invalid RGBA argument (Incorrect array shape)
I've looked at the other threads about this error, but couldn't find a solution to my problem.
I'm trying to update this repository to python 3, but I keep getting this error.
/usr/local/lib/python3.7/...
3
votes
1
answer
85
views
Barplot from unorganised data - dataframe creation?
From the table below, I need to create 4 different barplots, corresponding to the 4 diffeent places TST1 TST2 TST3 TST4 TST5
Each barplot should have 8 ticks for NOT_DONE INCOMP UNTESTED 30 35 40 45 ...
0
votes
1
answer
134
views
Barplot for a count of elements from different columns - guidance
According to a given dataset, I need to give 3 barplots which correspond to the 3 sites from the Sites column, A1 A2 or A3.
Each barplot should give the count of the outcome for each site. The outcome ...
0
votes
1
answer
1k
views
Matplotlib, animation by points in list
I want to have a list of points like
list = [[1.0, 1.0], ... ,[17.3, 39.4]]
and I want to make an animation in matplotlib, where my object would in first frame be in the first point the second frame ...
1
vote
1
answer
1k
views
matplotlib Axis not showing full value [duplicate]
when I run my code the Y axis is not showing full value as seen in picture below
I know I am missing something to do with my Axis not sure where? my code for Axis is below
ax.tick_params (axis='y', ...
1
vote
1
answer
68
views
Using specific keys of python dictionary to plot a graph
Is there some way to use specific keys of python dictionary to plot a graph?
{'iso_code': array(['AFG', 'OWID_AFR', 'ALB', 'DZA', 'AND', 'AGO', 'AIA', 'ATG', 'ARG',
'ARM', 'OWID_ASI', 'AUS', '...
0
votes
1
answer
345
views
Matplotlib wrapper for c++
I'm trying to get Matplotlib wrapper to work on wxDevC++
The code
#include <cstdlib>
#include <iostream>
#include "matplotlib-cpp/matplotlibcpp.h"
#include <vector>
...