Questions tagged as 'matplotlib'

1
answer

Error pandas and matplotlib could not convert string to float

I'm trying to draw on a graph the cell phone prices according to their models For now I have this import pandas as pd import csv import matplotlib.pyplot as plt import matplotlib.dates as mdates df1 = pd.read_csv('MercadoLibreMejor_items.c...
asked by 25.07.2017 / 20:58
0
answers

Help on python programming project [closed]

Good morning everyone, today I bring you a very particular question. It turns out that I must do a project in Python 2.7 in which I am asked to design regular polyhedra (specifically cubes). I do not want to be taught the code to develop, but ra...
asked by 23.03.2017 / 14:58
1
answer

Matplotlib python

I have the following problem: I have a Python script that has a class called "Triangle" which has a method called "plot ()", it returns the graph of a triangle. In this same script I have another class called "Circle" that has a method called...
asked by 20.11.2017 / 04:09
2
answers

Join with Straight Scatter Plot Matplotlib

I have a scatter diagram like the one shown in the figure and I want to join the points with segments, but not all, but in groups of a 5. That is, four segments that join the first 5 points, four segments that join the following 5 points and so...
asked by 07.08.2017 / 20:12
1
answer

Error importing matplotlib in python

As you can see I'm using Anaconda, and in that python environment v. 3.6.6. Just run "import matplotlib.pyplot" the application "breaks". I have searched in StackOverflow anglosajon, but nothing useful. I think it's about version problems....
asked by 24.08.2018 / 00:33
1
answer

AttributeError: 'Mul' object has no attribute 'eval'

I have a problem with this code, which calculates the eigenstates for the quantum harmonic oscillator and evaluates it in a given time. In turn, I try to plot all the state subplots for each value of n. But this error appears: for i in xx: reP...
asked by 30.09.2018 / 23:44
1
answer

Heat map from dictionary

I have a dictionary and I would like to create a map of heat or heatmap or densitymap of specific values. I only manage to plot the points but not the heat map. This is what I have. for id,msj in diccionario.items(): pylab.plot(msj['Longit...
asked by 15.03.2017 / 12:35
0
answers

How to cut out a part of a map?

I am currently processing some data and I have this map: And I need to cut out the area that I have left over (top right). Make the selection of longitudes and latitudes I = pl.find((lat>=9) & (lat<=9.5)) I1 = pl.find((lat&g...
asked by 07.12.2018 / 20:16
0
answers

move from one graphic to another in the same plot in matplotlib

good morning everyone. I have a problem, I attach an image that shows 9 graphs made with matplotlib and scatter, the issue is that there are more than 12 graphs I would like to know if it is possible to show all the graphs in a single plot by...
asked by 21.10.2018 / 19:10
0
answers

Problem with numpy meshgrid

I am stuck in a problem with matplotlib and using numpy.meshgrid. I have a 3D mesh of points called "grid3" in format x, y, z, pot. The point mesh is organized in the following way: x = grid3[:,0] y = grid3[:,1] z = grid3[:,2] pot = grid3[:,3]...
asked by 28.10.2018 / 18:14