iplot

Automated function to help create publication quality figures.

Ahora está siguiendo esta publicación

iplot

when we plot data, typically we use a fixed interval in the x-direction. as a result, if you try to use markers, in regions of your function where y is changing rapidly, the markers will be very spread out, and in regions where y barely changes, your markers will overlap. the result is a clumsy looking plot. you can try to get around this by plotting a subset of your function (i.e., plot(x(1:N:end),y(1:N:end)) but the result is also clumsy and you have to try and play around with N. this function solves this problem by guaranteeing that the distance between neighboring markers remains constant along the function you are plotting, regardless of its derivative direction. the user can specify the number of markers they want, N, spread evenly along the length of the plotted line. because the axis units does not always correspond to their displayed size in a plot, the user must also specify the x and y axis ranges they ultimately wish to display the plot at in xr=[xmin xmax] and yr=[ymin ymax].

example

x=linspace(-pi,pi,361)
y=sin(x);
figure(1)
iplot(x,y,[-pi pi],[-1 1],40,'k-s','LineWidth',0.75,'MarkerFaceColor','w','MarkerSize',5.0)

Citar como

Adam Glaser (2026). iplot (https://es.mathworks.com/matlabcentral/fileexchange/43229-iplot), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0