matplotlib tag

89 questions


1 answers
83 views
0
I want tkinter to display the graph I created with matplotlib, and I want to be able to change the range of the x-axis and y-axis with buttons.

I was able to draw the graph using the code below, but I couldn't find a way to change the range of the x and y axes after that, so please let me know.import numpy as npimport matplotlib.pyplot aspltf...

2 years ago

1 answers
45 views
0
Graph window resized incorrectly with macOS+matplotlib+wxPython

Using Python 3.8.1, Matplotlib 3.2.1, and wxPython 4.0.7 post2 installed on macOS Catalina (10.15.4), the code below draws four graphs, but if you resize the window, the initial image remains and the ...

2 years ago

1 answers
70 views
0
When I do plt.figure in PySimpleGUI, the window shrinks.

If I create a figure object with matplotlib.pyplot while using PySimpleGUI, the window size of the application created with PySimpleGUI will be fixedly reduced. Is there any way to avoid this?Run Envi...

2 years ago

1 answers
55 views
0
I cannot install matplotlib on python 3.7.

Download matplotlib-3.0.2-cp37-cp37m-win_amd64.whl from https://pypi.org/ and click from the command prompt.c:\Users\ーSername\Downloads>pip install matplotlib-3.0.2-cp37-cp37m_amd.whlEven if I try ...

2 years ago

2 answers
56 views
0
I want to plot the name of the element in Python matplotlib

I'd like to draw a scatterplot using Python's matplotlib/seaborn, but the Roman alphabet name is Dataframe's index, and I'd like to plot it as a dot.In the case of R, for example, iris data, >plot(...

2 years ago

1 answers
54 views
0
I want to change the legend location in pandas.plot

I made a stock price graph using pandas.plot, but the legend is in a strange position.If it's matplotlib, I think I can adjust the position by specifying loc for legend as shown below, but if it's pan...

2 years ago

1 answers
67 views
0
Workaround for index2 is out of bounds for axis1 with size2

It's for python beginners.If you run the code that reads csv containing 2011 image data and divides the results into 1000 first half and 1011 second half of PCA and outputs them to the graph, IndexErr...

2 years ago

1 answers
57 views
0
Plt.show() does not plot

Running Python 3.6.5 in VS Code.The script says import matplotlib.pyplotasplt, but plt.show() also shows the plot window, but nothing is drawn and the window remains completely white.There is no error...

2 years ago

1 answers
81 views
0
ValueError on Python: I don't know what to do with Length mismatch.

The code below suddenly displays ValueError: Length mismatch, and I don't know how to deal with it.I thought it was because I got the same securities code over and over again, but it was working fine ...


1 answers
90 views
0
I want to make an arrow legend with quiver.

It is a code representing the wind direction of v-wind and u-wind, indicating the wind direction of north-south and east-west.I would like to display an arrow representing wind speed of 1 m/s in the u...

2 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.