# plt.axis()Īs can be seen, the axis limits do not hold and I didn't found why yet. Quiver_cax = fig.add_axes()įig.colorbar(quiver, orientation='horizontal', cax=quiver_cax) Marker='$\\circlearrowleft$', markeredgewidth=1, markersize=10) Marker='$\\circlearrowright$', markeredgewidth=1, markersize=10) Call (limitrange) to restrict the range to limitrange for the x-axis of the plot. Quiver = ax.quiver(x, y, vector_field_x, vector_field_y, m, zorder=1)Īx.scatter(x, y, marker='$\\circlearrowright$', s=100, zorder=2)Īx.scatter(x, y, marker='$\\circlearrowleft$', s=100, zorder=2) M = numpy.sqrt(numpy.power(vector_field_x, 2) numpy.power(vector_field_y, 2)) :param max_points : a set (x, y) of max points field :param min_points : a set (x, y) of min points field :param vector_field_y : the vector field y component to be plot :param vector_field_x : the vector field x component to be plot :param file_path : the path to save the data This is the code that produces it: def plot_quiver_singularities(min_points, max_points, vector_field_x, vector_field_y, file_path): The problem is 'cause I have more "complex" plot in which some changes had to me made. Which is a plot which axis limits varies from (-1, 1) in both x and y, with a margin set with this piece of code: plt.figure() I'm plotting a set of data which the main plot have this pattern: I'm having the same problem presented here, however, the proposed solution didn't work for me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |