Lecture 1, plot_solution.py Make plots fails, because clabels dont match available levels.

Issue #4 new
Former user created an issue

File "plot_solution.py", line 52, in <module> plt.clabel(C, clines[1::2], inline=1, fontsize=10) File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 2776, in clabel ret = ax.clabel(CS, args, kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 5829, in clabel return CS.clabel(args, **kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/contour.py", line 176, in clabel raise ValueError(msg) ValueError: Specified levels [0.040000000000000001, 0.12, 0.20000000000000001, 0.28000000000000003, 0.35999999999999999, 0.44, 0.52000000000000002, 0.59999999999999998, 0.68000000000000005, 0.76000000000000001, 0.83999999999999997, 0.92000000000000004, 1.0] don't match available levels [ 0.04 0.08 0.12 0.16 0.2 0.24 0.28 0.32 0.36 0.4 0.44 0.48 0.52 0.56 0.6 0.64 0.68 0.72 0.76 0.8 0.84 0.88 0.92 0.96]

Comments (0)

  1. Log in to comment