el error que me da es el sig:
ValueError Traceback (most recent call last)
/tmp/ipykernel_59/4196725982.py in
6 fig = plt.figure(figsize=(5, 5))
7 plt.plot(x_para_gradiente,y_para_gradiente,c=jpac_color[3],label=‘Funcion’)
----> 8 plt.plot(x_para_gradiente,derivada,’–’,c=jpac_color[1],label=‘Derivada’)
9 plt.legend(loc=‘upper left’)
10 plt.show()
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/pyplot.py in plot(scalex, scaley, data, *args, **kwargs)
2761 return gca().plot(
2762 *args, scalex=scalex, scaley=scaley, **({“data”: data} if data
→ 2763 is not None else {}), **kwargs)
2764
2765
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)
1644 “”"
1645 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D)
→ 1646 lines = [*self._get_lines(*args, data=data, **kwargs)]
1647 for line in lines:
1648 self.add_line(line)
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_base.py in call(self, *args, **kwargs)
214 this += args[0],
215 args = args[1:]
→ 216 yield from self._plot_args(this, kwargs)
217
218 def get_next_color(self):
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs)
340
341 if x.shape[0] != y.shape[0]:
→ 342 raise ValueError(f"x and y must have same first dimension, but "
343 f"have shapes {x.shape} and {y.shape}")
344 if x.ndim > 2 or y.ndim > 2:
ValueError: x and y must have same first dimension, but have shapes (100,) and (6,)