matplotlib tricontourf ploblem when I give more data point
问题 I have got a problem when i try to plot the stress. import numpy as np import matplotlib.pyplot as plt import matplotlib.tri as mtri import matplotlib.cm as cm def plot(x_plot, y_plot, a_plot): x = np.array(x_plot) y = np.array(y_plot) a = np.array(a_plot) triang = mtri.Triangulation(x, y) refiner = mtri.UniformTriRefiner(triang) tri_refi, z_test_refi = refiner.refine_field(a, subdiv=4) plt.figure(figsize=(18, 9)) plt.gca().set_aspect('equal') # levels = np.arange(23.4, 23.7, 0.025) levels =