This is to allow for room between the depressing comic book pdf axis(0 1 -3.1.1) set( AX, YTick,-3:3 ) AxisSetup( AX,.220.127.116.11, 9 ) At this point, your figure should look like this, especially if you used PrintRoutine to print your figure to a 600.
Note: when passing through linespec handles with markers, you must specify at least Marker and MarkerEdgeColor for this function to work properly.Additionally, this function gives you the belong to me pdf option of making legend entries with multiple columns.Next, we need to setup the cell array of strings for our legend labels.Well just label the signals with an arbitrary designation.Right now, a traditional 41 Position vector is specified to position and size the legend, assuming units of centimeters.(Actually, Im fibbing because I did complain to matlab tech support who were basically like youre SOL, deal with.The only previous options were to have either 1 column or 1 row.Also, remember, this function is meant to be used with the function.Also, if you do not have the position correct, just re-run LegendMatrix with changes to the 41 Position command and it should overwrite the existing legend that we just made.My thought process for building my own legend command is as follows: Scalability : I needed the legend to be scalable.Started by Nick13WV May 8, 2002.The inputs pos and fs should be self-explanatory, especially if you are using some of my other functions.If we do that (and play around with the position command a little the figure can look like: With this LegendMatrix command, we can cut down on the wasted white space and make the legend look more professional. .Also, you may find that when writing out images matlab helpfully redraws the image, resetting your adjustments.No such luck there either.) but since I decided to build my own legend command, I decided to fix a few other aspects that bothered.Lets compare to how the existing legend command works.XTick ; ick ;.One way would be to adjust the aspect ratio of the legend: set(h PlotBoxAspectRatio.8 1 (Default is 1 1 1).
Define a new spacing of your choice, yd2.