matplotlib tag

89 questions


1 answers
314 views
0
How to Specify the Number of Decimal Digits When Drawing DataFrame in matplotlib

I have saved the Pandas DataFrame in the image in matplotlib by referring to the site below. I am having trouble formatting the number of decimal places.Could you tell me how to display it in two deci...

2 years ago

1 answers
314 views
0
I want to create a two-dimensional graph (map) using python.

I would like to graph the intensity in the z-axis direction on the xy plane using two-dimensional mapping.At that time, I imagine that the dots between the data will be interpolated and connected smoo...

2 years ago

1 answers
500 views
0
I want to create a three-dimensional graph using python and csv files.

I would like to create a 3D graph using python and csv files.The goal is to create a three-dimensional graph using CSV files such as images.(It is opened in Excel, so it is divided into cells accordin...


2 answers
283 views
0
variance, standard deviation, correlation coefficient

Which part of this should I change to produce variance, standard deviation, and correlation coefficient?import matplotlib.pyplot as pltimport statisticsimport numpyx = [ ]y = [ ]for i in range (1901, ...

2 years ago

2 answers
315 views
0
How to draw a line graph with matplotlib

Please tell me how to draw a graph for the following problems!!Using for statement, range data: x = [1,2,3,4,5,6,........496,497,498,499,500]y = [sin(1), sin(2),..............sin(499), sin(500)]Draw a...

2 years ago

1 answers
304 views
0
I want python to display square images in any order like tiles.

I think I'm erasing the gaps with wspace and hspace, but the image after execution has an unnatural gapdefketugou (path, outpath, zyunban, tate, yoko): d = [ ] for i in range (tate*yoko): img=Image.o...

2 years ago

4 answers
468 views
0
I want to draw two 1D scatterplots (horizontal) with matplotlib or seaborn and draw a line between common points.

Can you manage with violinPlot of seaborn?I would appreciate it if you could give me some advice to make the diagram below.# Input data and drawing resultsInput data:dataA = [2, 4, 6, 8, 10, 12, 14]da...

2 years ago

2 answers
345 views
0
Overlapping sound data with Numpy

The graph that appears to be the sum of the elements by calculating the sum of the numpy arrays in Python was affected.In order to avoid this, I would like to use something from numpy to superimpose t...

2 years ago

1 answers
272 views
0
I want to spin multiple dataframes with a for statement

df_1,df_2,df_3 and all columns are the same.df_1['year'].shapedf_2['year'].shapedf_3['year'].shapeYou want to spin the above with the for statement, for in (1,2,3): df_(i)['year'].shapeI'd like to do ...


1 answers
95 views
0
Japanese notation in matplotlib in networkx

This is a rudimentary point, but how can I use networkx to put matplotlib in Japanese?I imported Japanese-matplotlib, but it turned into tofu.I would appreciate your advice.#coding=UTF-8# function dec...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.