Julia for MATLAB Users/Core Language/Graphics

Graphics

edit

See Introducing Julia/Plotting for an overview of the plotting ecosystem in Julia.

2-D and 3-D Plots

edit

Line Plots

edit
plot 2-D line plot
edit
plot3 3-D line plot
edit
loglog Log-log scale plot
edit
semilogx Semilogarithmic plot
edit
semilogy Semilogarithmic plot
edit
errorbar Line plot with error bars
edit
fplot Plot expression or function
edit
fplot3 3-D parametric curve plotter
edit
fimplicit Plot implicit function
edit
LineSpec Line specification
edit
ColorSpec Color specification
edit

Pie Charts, Bar Plots, and Histograms

edit
bar Bar graph
edit
bar3 Plot 3-D bar graph
edit
barh Plot bar graph horizontally
edit
bar3h Plot horizontal 3-D bar graph
edit
histogram Histogram plot
edit
histogram2 Bivariate histogram plot
edit
morebins Increase number of histogram bins
edit
fewerbins Decrease number of histogram bins
edit
histcounts Histogram bin counts
edit
histcounts2 Bivariate histogram bin counts
edit
binscatter Binned scatter plot
edit
rose Angle histogram plot
edit
pareto Pareto chart
edit
area Filled area 2-D plot
edit
pie Pie chart
edit
pie3 3-D pie chart
edit

Discrete Data Plots

edit
stem Plot discrete sequence data
edit
stairs Stairstep graph
edit
stem3 Plot 3-D discrete sequence data
edit
scatter Scatter plot
edit
scatter3 3-D scatter plot
edit
spy Visualize sparsity pattern
edit
plotmatrix Scatter plot matrix
edit
heatmap Create heatmap chart
edit
sortx Sort elements in heatmap row
edit
sorty Sort elements in heatmap column
edit
wordcloud Create word cloud chart from text data
edit
geobubble Visualize data values at specific geographic locations
edit
geolimits Set or query geographic limits
edit

Polar Plots

edit
polarplot Plot line in polar coordinates
edit
polarscatter Scatter chart in polar coordinates
edit
polarhistogram Histogram chart in polar coordinates
edit
compass Plot arrows emanating from origin
edit
ezpolar Easy-to-use polar coordinate plotter
edit
rlim Set or query r-axis limits for polar axes
edit
thetalim Set or query theta-axis limits for polar axes
edit
rticks Set or query r-axis tick values
edit
thetaticks Set or query theta-axis tick values
edit
rticklabels Set or query r-axis tick labels
edit
thetaticklabels Set or query theta-axis tick labels
edit
rtickformat Specify r-axis tick label format
edit
thetatickformat Specify theta-axis tick label format
edit
rtickangle Rotate r-axis tick labels
edit
polaraxes Create polar axes
edit

Contour Plots

edit
contour Contour plot of matrix
edit
contourf Filled 2-D contour plot
edit
contourc Low-level contour plot computation
edit
contour3 3-D contour plot
edit
contourslice Draw contours in volume slice planes
edit
clabel Label contour plot elevation
edit
fcontour Plot contours
edit

Vector Fields

edit
feather Plot velocity vectors
edit
quiver Quiver or velocity plot
edit
compass Plot arrows emanating from origin
edit
quiver3 3-D quiver or velocity plot
edit
streamslice Plot streamlines in slice planes
edit
streamline Plot streamlines from 2-D or 3-D vector data
edit

Surfaces, Volumes, and Polygons

edit

Surface and Mesh Plots

edit
surf Surface plot
edit
surfc Contour plot under a 3-D shaded surface plot
edit
surface Create surface object
edit
surfl Surface plot with colormap-based lighting
edit
surfnorm Compute and display 3-D surface normals
edit
mesh Mesh plot
edit
meshc Plot a contour graph under mesh graph
edit
meshz Plot a curtain around mesh plot
edit
hidden Remove hidden lines from mesh plot
edit
fsurf Plot 3-D surface
edit
fmesh Plot 3-D mesh
edit
fimplicit3 Plot 3-D implicit function
edit
waterfall Waterfall plot
edit
ribbon Ribbon plot
edit
contour3 3-D contour plot
edit
peaks Example function of two variables
edit
cylinder Generate cylinder
edit
ellipsoid Generate ellipsoid
edit
sphere Generate sphere
edit
pcolor Pseudocolor (checkerboard) plot
edit
surf2patch Convert surface data to patch data
edit

Volume Visualization

edit
contourslice Draw contours in volume slice planes
edit
flow Simple function of three variables
edit
isocaps Compute isosurface end-cap geometry
edit
isocolors Calculate isosurface and patch colors
edit
isonormals Compute normals of isosurface vertices
edit
isosurface Extract isosurface data from volume data
edit
reducepatch Reduce number of patch faces
edit
reducevolume Reduce number of elements in volume data set
edit
shrinkfaces Reduce size of patch faces
edit
slice Volume slice planes
edit
smooth3 Smooth 3-D data
edit
subvolume Extract subset of volume data set
edit
volumebounds Coordinate and color limits for volume data
edit
coneplot Plot velocity vectors as cones in 3-D vector field
edit
curl Compute curl and angular velocity of vector field
edit
divergence Compute divergence of vector field
edit
interpstreamspeed Interpolate stream-line vertices from flow speed
edit
stream2 Compute 2-D streamline data
edit
stream3 Compute 3-D streamline data
edit
streamline Plot streamlines from 2-D or 3-D vector data
edit
streamparticles Plot stream particles
edit
streamribbon 3-D stream ribbon plot from vector volume data
edit
streamslice Plot streamlines in slice planes
edit
streamtube Create 3-D stream tube plot
edit

Polygons

edit
fill Filled 2-D polygons
edit
fill3 Filled 3-D polygons
edit
patch Create one or more filled polygons
edit
surf2patch Convert surface data to patch data
edit

Animation

edit
movie Play recorded movie frames
edit
getframe Capture axes or figure as movie frame
edit
frame2im Return image data associated with movie frame
edit
im2frame Convert image to movie frame
edit
animatedline Create animated line
edit
addpoints Add points to animated line
edit
getpoints Return points that define animated line
edit
clearpoints Clear points from animated line
edit
comet 2-D comet plot
edit
comet3 3-D comet plot
edit
drawnow Update figures and process callbacks
edit
refreshdata Refresh data in graph when data source is specified
edit

Formatting and Annotation

edit

Titles and Labels

edit
title Add title
edit
xlabel Label x-axis
edit
ylabel Label y-axis
edit
zlabel Label z-axis
edit
clabel Label contour plot elevation
edit
legend Add legend to axes
edit
colorbar Colorbar showing color scale
edit
text Add text descriptions to data points
edit
texlabel Format text with TeX characters
edit
gtext Add text to figure using mouse
edit
line Create primitive line
edit
rectangle Create rectangle with sharp or curved corners
edit
annotation Create annotations
edit

Axes Appearance

edit
xlim Set or query x-axis limits
edit
ylim Set or query y-axis limits
edit
zlim Set or query z-axis limits
edit
axis Set axis limits and aspect ratios
edit
box Display axes outline
edit
daspect Control data unit length along each axis
edit
pbaspect Control relative lengths of each axis
edit
grid Display or hide axes grid lines
edit
xticks Set or query x-axis tick values
edit
yticks Set or query y-axis tick values
edit
zticks Set or query z-axis tick values
edit
xticklabels Set or query x-axis tick labels
edit
yticklabels Set or query y-axis tick labels
edit
zticklabels Set or query z-axis tick labels
edit
xtickformat Specify x-axis tick label format
edit
ytickformat Specify y-axis tick label format
edit
ztickformat Specify z-axis tick label format
edit
xtickangle Rotate x-axis tick labels
edit
ytickangle Rotate y-axis tick labels
edit
ztickangle Rotate z-axis tick labels
edit
datetick Date formatted tick labels
edit
ruler2num Convert data from specific ruler to numeric data
edit
num2ruler Convert numeric data for use with specific ruler
edit
hold Retain current plot when adding new plots
edit
subplot Create axes in tiled positions
edit
yyaxis Create chart with two y-axes
edit
cla Clear axes
edit
axes Create Cartesian axes
edit
figure Create figure window
edit

Colormaps

edit
colormap View and set current colormap
edit
colorbar Colorbar showing color scale
edit
rgbplot Plot colormap
edit
Colormap Editor Open colormap editor
edit
brighten Brighten or darken colormap
edit
contrast Create grayscale colormap to enhance image contrast
edit
caxis Set colormap limits
edit
spinmap Rotate colormap colors
edit
hsv2rgb Convert HSV colors to RGB
edit
rgb2hsv Convert RGB colors to HSV
edit
parula Parula colormap array
edit
jet Jet colormap array
edit
hsv HSV colormap array
edit
hot Hot colormap array
edit
cool Cool colormap array
edit
spring Spring colormap array
edit
summer Summer colormap array
edit
autumn Autumn colormap array
edit
winter Winter colormap array
edit
gray Gray colormap array
edit
bone Bone colormap array
edit
copper Copper colormap array
edit
pink Pink colormap array
edit
lines Lines colormap array
edit
colorcube Colorcube colormap array
edit
prism Prism colormap array
edit
flag Flag colormap array
edit

3-D Scene Control

edit

Camera Views

edit
view Viewpoint specification
edit
makehgtform Create 4-by-4 transform matrix
edit
viewmtx View transformation matrices
edit
cameratoolbar Control camera toolbar programmatically
edit
campan Rotate camera target around camera position
edit
camzoom Zoom in and out on scene
edit
camdolly Move camera position and target
edit
camlookat Position camera to view object or group of objects
edit
camorbit Rotate camera position around camera target
edit
campos Set or query camera position
edit
camproj Set or query projection type
edit
camroll Rotate camera about view axis
edit
camtarget Set or query location of camera target
edit
camup Set or query camera up vector
edit
camva Set or query camera view angle
edit

Lighting, Transparency, and Shading

edit
camlight Create or move light object in camera coordinates
edit
light Create light
edit
lightangle Create or position light object in spherical coordinates
edit
lighting Specify lighting algorithm
edit
shading Set color shading properties
edit
diffuse Calculate diffuse reflectance
edit
material Control reflectance properties of surfaces and patches
edit
specular Calculate specular reflectance
edit
alim Set or query axes alpha limits
edit
alpha Add transparency to objects in axes
edit
alphamap Specify figure alphamap (transparency)
edit

Images

edit
imshow Display image
edit
image Display image from array
edit
imagesc Display image with scaled colors
edit
imread Read image from graphics file
edit
imresize Resize image
edit
imwrite Write image to graphics file
edit
imfinfo Information about graphics file
edit
imformats Manage image file format registry
edit
frame2im Return image data associated with movie frame
edit
im2frame Convert image to movie frame
edit
im2java Convert image to Java image
edit
im2double Convert image to double precision
edit
ind2rgb Convert indexed image to RGB image
edit
rgb2gray Convert RGB image or colormap to grayscale
edit
rgb2ind Convert RGB image to indexed image
edit
imapprox Approximate indexed image by reducing number of colors
edit
dither Convert image, increasing apparent color resolution by dithering
edit
cmpermute Rearrange colors in colormap
edit