![]() These buttons generate a MATLAB plot using the data plotted in the Visualizer In addition, the MATLAB export script button creates a script that generates the plot in MATLAB. MATLAB export / MATLAB export script: Only available for line-xy and surface plots. It can be helpful to create an electric field vector plot to study circularly polarized or elliptically polarized beams.The more interesting quantity to plot is the Poynting vector to visualize the direction of power flow. ![]() Plots of the electric field will often contain vectors pointing in different directions representing the oscillation of the field direction. It is often more meaningful to plot the Poynting vector rather than the fields.It is possible to create a vector plot of quantities such as the electric field, magnetic field, Poynting vector, etc. Choose the parameters table to slice a frequency point. Vector: Choose this option to create a 2D/3D vector plot of monitor data. You can use the parameters table on the bottom to choose which dimensions to slice and which to plot on the x or y-axis, e.g., a spatial field profile (field vs. For matrices with more than 2 dimensions, slices of the matrix will automatically be chosen. Image: Choose this option to create a 2D image plot of monitor data. The data must be provided as a function of the angle in radians. Line (Polar plot): Choose this option to plot the angular distribution of some quantity. (Example: Microstrip with a lumped RLC element) Line (Smith chart): Use this option for plotting impedance data. You can use the parameters table on the bottom to choose which dimension to slice and which to plot on the x- or y-axis, e.g., a spectrum (field amplitude vs. For matrices with more than 1 dimension, a slice of the matrix will be automatically chosen. Line (xy plot): Choose this option to plot a 1D vector versus another 1D vector. In this section, we describe the visualizer tools for data structured in a rectilinear grid (eg. The SETTINGS menu contains options for setting the axes, colorbar limits, color map, labels, etc. The FILE menu contains an option to export the current figure to a JPG image file. For image plots, the colormap scale can be changed from color to grey, or red2blue. For example, only the 3D vector plot provides controls for 3D rotation of the view SHIFT key + mouse LEFT click allows pan view without 3D rotation. Some controls are slightly different for each type of plot (see more details in the next sections). Pressing the left mouse button to zoom in by a factor of two, the right button to zoom out by a factor of two, pressing and holding the left-hand mouse button results in a zoom window, and double-clicking either mouse button scales the plot to show all of the data. Plot windows support standard operations such as axis labels, zoom, export to JPG, etc. These plots can be created from within the results visualizer ("plot in new window" button), or from a script. Simulation results can be visualized using 1D lines, a 2D surface, and 3D plots. This is because a legend in itself is basically an axes object.This page explains how to use the data visualizer and figure windows to view your simulation data. You can add any figure's child with the DisplayName property to any legend in the figure, e.g. The legend updates automatically if an object is added or removed from its PlotChildren property.ġ Indeed: figure. L.PlotChildren(end + 1) = hTan % Append the graphics handle to legend's plot children So, the way to go is to explicitly set the legend's children through its PlotChildren property as follows: hTan.DisplayName = 'tangent' % Set the graphics object's display name Luckily, an undocumented legend property called PlotChildren keeps track of the children of the parent figure 1. Legend sine '' tangent % Sets cos DisplayName, albeit empty -> fail Legend sine tangent % Sets cos DisplayName to 'tangent' -> fail Legend -DynamicLegend % Undocumented feature, adds 'cos', which shouldn't be added -> fail ![]() Now, to add a legend entry for tan, but not for cos, any of the following lines won't do the trick they all fail in some way: legend tangent % Replaces current legend -> fail HTan = % Make sure to get the handle, hTan, to the graphics object you want to add to the legend Hold sin % Add only a legend entry for sin For example, if your plot has two lines, but only one of them has a legend entry and that should stay this way, then adding a third line with a legend entry can be difficult. Semi-transparent markers in line and scatter plotsĮxisting legends can be difficult to manage.Contour Plots - Customise the Text Labels.Color-coded 2D line plots with color data in third dimension.Appending / adding entries to an existing legend. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |