Questions tagged as 'matplotlib'

1
answer

Matplotlib python normalize y-axis

I'm trying to normalize the y-axis of this plot, when I say normalize and leave on the same scale import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import numpy as np from matplotlib.legend_handler import HandlerLine2D...
asked by 04.01.2018 / 01:57
1
answer

How to sum a column of a file and view it with .plot (kind = 'bar')?

I'm trying to sum the duration column, and display using plot() trip_data['duration'].value_counts().plot(kind = 'bar') trip_data['duration'].count_data().plot(kind = 'bar') trip_data['duration'].size().plot(kind = 'bar') But everyth...
asked by 15.09.2017 / 03:58
1
answer

How to include labels in matplotlib

I have the following code: import matplotlib.pyplot as plt AP_X = [10,20,30,40] AP_Y = [50,60,70,80] plt.scatter(AP_X, AP_Y, color="green") plt.ylim(0, 100) plt.xlim(0, 100) plt.show() It displays a graph with the x, y positions of my 4 p...
asked by 26.07.2017 / 03:48
1
answer

Transform varchar to float

I made a code that takes data from the DB to generate a graph with matplotlib , but the data in the DB is as varchar and for data creation it must be in the format% with%. How can I do the conversion? # -*- coding: utf-8 -*- import MyS...
asked by 29.05.2017 / 22:31
1
answer

Legend font size in a python chart

I would like to know how to adjust the font size used in a legend in a Python chart using the matplotlib library. I did a search and found this form. plt.legend(loc='upper left', prop={'size':12}) Is there another way to adjust the font siz...
asked by 01.08.2014 / 01:10
1
answer

Problem with values with Matplotlib in python

I have a file in csv, and I am separating the columns to display the information graphically using Matplotlib, however I have a problem when the information is empty, I change to 0 and try to display the graph again, but the result is always thi...
asked by 21.12.2018 / 16:34
0
answers

Argument does not support iteration. How to solve?

I'm trying to apply the zip to the x, y, and z lists, but when I run the program, I get the following error: izip argument # 1 must support iteration. Can anyone help me fix my error? from matplotlib.backends.backend_qt4agg import FigureCanvas...
asked by 02.10.2018 / 23:19
0
answers

How to draw rays in 3D matplotlib?

Is there a way to plot simply by giving only the radius and coordinates of the center? I found on the internet only filled circles and a way to plot rings with sine and cosine functions, but I do not know how to change the coordinate of the cent...
asked by 04.10.2018 / 21:34
0
answers

Define part scale of a drawing based on the complete drawing in 3D matplotlib

Good evening everyone! I need to create a graphical interface where the user can insert lines and eventually circles at the ends of these lines, as shown in the example, but, depending on the size of the lines, my circles that are fixed at radiu...
asked by 13.09.2018 / 00:41
0
answers

I can not capture data provided in a lineEdit

Good afternoon everyone! I need to reuse the data from lineEdit's obj and obj1 in another class, but when I try to do this, I get the error: AppCAD 'object has no attribute' coord. Where am I going wrong? import sys import PyQt4.QtCore as qc i...
asked by 21.08.2018 / 20:39