Added the recipe 'vectorfieldplot' for plotting 2d vector field functions#4979
Open
m0rninglightmountain wants to merge 1 commit intoJuliaPlots:v2from
Open
Added the recipe 'vectorfieldplot' for plotting 2d vector field functions#4979m0rninglightmountain wants to merge 1 commit intoJuliaPlots:v2from
m0rninglightmountain wants to merge 1 commit intoJuliaPlots:v2from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4890
Description
This Pull request adds a new recipe,
Vectorfieldplot(),based on theRecipebase package. The recipe enhances the plotting capabilities by providing a straightforward method for visualizing 2D vector fields.Function Input: The plot accepts a single function as an argument, which defines the vector field to be visualized. This function should take two arguments (x, y coordinates) and return a 2-tuple representing the vector components
(u, v).Plot Customization: The plot includes customizable attributes such as axis limits, grid lines, ticks, and labels. The vectors are plotted using a quiver plot style, with arrows representing the direction and magnitude of the field at each grid point. Here's the list of customizable attributes :
Plot attributes
Usage
This is the step-wise instruction to use
vectorfieldplot:Here's the graph of the vector field function generated using the above code:
Things to consider