Questions tagged as 'matplotlib'

1
answer

Error when plotting date values with matplotlib [closed]

I'm testing with Pandas and matplotlib. The first column of the Excel are dates, format (dd / mm / yy). Reading the Excel sheet with Pandas presents me: 0 Fecha Valor 1 2017-09-11 00:00:00 44.42 2 2017-09-08 00:00:00...
asked by 17.09.2017 / 19:37
0
answers

Python parser error with expressions evaluator

Hello, I have been implementing several numerical methods in python for a long time, in this case I am implementing the bisection method and it works perfectly but the problem is in the expression evaluator that is giving me an error that I do n...
asked by 21.03.2017 / 15:55
1
answer

TypeError: only length-1 arrays can be converted to Python scalars

import matplotlib.pyplot as plt import numpy as np from py_expression_eval import * def f(exp, var, x0): p = Parser() result = p.parse(exp).evaluate({var:x0}) return result a = 0 b = 4 error = 10 i = 0 while(error>1e-8 and i!=100)...
asked by 02.03.2017 / 11:23