All Questions
1,064 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
257
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
52
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 ...
3
votes
1
answer
86
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', '...
2
votes
1
answer
528
views
Unable to display output from matplotlib using conda through WSL
I am trying to run ToPy (Topology Optimisation) program using anaconda on wsl.
So, I created an environment with python-2.7 and all other programs recommended by ToPy.
I am running into an error with ...
0
votes
0
answers
56
views
RuntimeError during twinx() in matplotlib
I get the following error while doing plt.twinx()
RuntimeError: Locator attempting to generate 1993 ticks from 0.075257498916 to 199.95917462: exceeds Locator.MAXTICKS
The corresponding code is :
x1 =...
0
votes
2
answers
11k
views
this application has requested the runtime to terminate it in an unusual way [duplicate]
I am working with python 2.7.18 and when I run my code this error appears telling "This application has requested the runtime too ...", I closed all my codes and write this simple code which ...