dcrg.plot
Classes
dcrg.plot.spider_plot
- class dcrg.plot.spider_plot
Bases:
matlab.graphics.chartcontainer.ChartContainer,matlab.graphics.chartcontainer.mixin.Legendspider_plot Create a spider or radar plot with individual axes.
- Syntax:
s = spider_plot(P) s = spider_plot(P, Name, Value, …) s = spider_plot(parent, ___)
- Documentation:
Please refer to the MathWorks File Exchange or GitHub page for the detailed documentation and examples.
https://github.com/NewGuy012/spider_plot
- Constructor Summary
- spider_plot(parentOrP, varargin)
Validate number of input arguments
- Property Summary
- AxesColor
Axes color
- AxesDataOffset
Offset position of axes data labels
- AxesDirection
- AxesDisplay
Number of tick label groups shown on axes
- AxesFont
Axes tick font type
- AxesFontColor
Axes font color
- AxesFontSize
Axes tick font size
- AxesHorzAlign
Horizontal alignment of axes labels
- AxesInterpreter
- AxesInterval
Number of axes grid lines
- AxesLabels
Axes labels
- AxesLabelsEdge
Axes label color
- AxesLabelsOffset
Offset position of axes labels
- AxesLabelsRotate
- AxesLimits
Axes limits
- AxesOffset
Axes offset
- AxesPrecision
Tick precision
- AxesRadial
- AxesRadialLineStyle
- AxesRadialLineWidth
- AxesScaling
Scaling of axes
- AxesShaded
- AxesShadedColor
- AxesShadedLimits
- AxesShadedTransparency
Shading alpha
- AxesStart
- AxesTickFormat
- AxesTickInterpreter
- AxesTickLabels
- AxesVertAlign
Vertical alignment of axes labels
- AxesWeb
- AxesWebLineStyle
- AxesWebLineWidth
- AxesWebType
- AxesZero
- AxesZeroColor
- AxesZeroWidth
- AxesZoom
Axes scale
- BackgroundColor
- Color
Color order
- Direction
- ErrorBars
- ErrorNegative
- ErrorPositive
- FillCData
- FillOption
Whether to shade data
- FillTransparency
Shading alpha
- LabelFont
Label font type
- LabelFontSize
Label font size
- LegendHandle
Legend handle
- LegendLabels
Legend labels
- LineStyle
Data line style
- LineTransparency
Shading alpha
- LineWidth
Data line width
- Marker
Data marker
- MarkerSize
Data marker size
- MarkerTransparency
Shading alpha
- MinorGrid
- MinorGridInterval
- P
Property validation and defaults
- PlotVisible
- TiledLayoutHandle
Tiled layout handle
- TiledLegendHandle
Tiled legend handle
- UserData
- Method Summary
- nexttile(object_handle, varargin)
Copy over axes
- tiledlayout(varargin)
Figure properties
- tiledlegend(varargin)
Relevant graphic handles
- title(title_text, varargin)
Get axes and title handles
Functions
dcrg.plot.fill_std
- dcrg.plot.fill_std(x, y, y_std, varargin)
- FILL_STD plots a filled polygon to represent the std about a value
x - the ‘x’ data y - the ‘y’ data y_std - the semi-width of the polygon to plot at each x value varargin - a list of additional parameters passed to the ‘fill’
function
The function returns the plot handle of the filled area
created by: Fintan Healy date: 17/03/2021 email: fintan.healy@bristol.ac.uk
dcrg.plot.gif
- dcrg.plot.gif(varargin)
- pulled from the file exchange:
https://uk.mathworks.com/matlabcentral/fileexchange/63239-gif?s_tid=srchtitle
gif(‘myfile.gif’)
to write the first frame, and then call
gif
to write each subsequent frame. That’s it.
Syntax
gif(‘filename.gif’) gif(…,’DelayTime’,DelayTimeValue,…) gif(…,’LoopCount’,LoopCountValue,…) gif(…,’frame’,handle,…) gif(…,’nodither’) gif gif(‘clear’)
Description
gif(‘filename.gif’) writes the first frame of a new gif file by the name filename.gif.
gif(…,’DelayTime’,DelayTimeValue,…) specifies a the delay time in seconds between frames. Default delay time is 1/15.
gif(…,’LoopCount’,LoopCountValue,…) specifies the number of times the gif animation will play. Default loop count is Inf.
gif(…,’frame’,handle,…) uses the frame of the given figure or set of axes. The default frame handle is gca, meaning the current axes. To turn an entire figure window into a gif, use ‘frame’,gcf to use the current figure.
gif(…,’nodither’) maps each color in the original image to the closest color in the new without dithering. Dithering is performed by default to achieve better color resolution, albeit at the expense of spatial resolution.
gif adds a frame to the current gif file.
gif(‘clear’) clears the persistent variables associated with the most recent gif.
Example
% Some sample data: t = sin(linspace(0,2*pi,30)); [X,Y,Z] = peaks(500);
% Plot the first frame: h = surf(X,Y,Z*t(1)); shading interp axis([-3 3 -3 3 -9 9])
% Create a new gif file and write the first frame: gif(‘myfile.gif’) % Or specify options like this: gif(‘myfile.gif’,’DelayTime’,0.2,’LoopCount’,5,’frame’,gcf)
% Loop through every other frame. for k = 2:length(t)
set(h,’Zdata’,Z*t(k)) gif
end
% View the gif in Matlab if you’d like: web(‘myfile.gif’)
Author Information This function was written by Chad A. Greene of the University of Texas Institute for Geophysics (UTIG), June 2017.
See also:
imwrite,getframe,and rgb2ind.Define persistent variables:
dcrg.plot.normCoord
- dcrg.plot.normCoord(x, y, Where, axes)