Skip to content

Commit

Permalink
Replace hard-coded colors with SeriesIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
eszmw committed Oct 9, 2024
1 parent 8e5d8bc commit 4baf4b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions FunctionLibrary/PlotVector3DAxis.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ function PlotVector3DAxis(axlims)
b = ub-a;
buff = b*0.1;
c = ub+buff/2;
ca = [0.3 0.3 0.3 0.6];
axis([a-buff,c+buff,a-buff,c+buff,a-buff,c+buff])
quiver3(a,0,0,b,0,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
quiver3(0,a,0,0,b,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
quiver3(0,0,a,0,0,b,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
quiver3(a,0,0,b,0,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
quiver3(0,a,0,0,b,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
quiver3(0,0,a,0,0,b,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
text(c,0,0,"$x$", "Interpreter","latex","fontsize",fs)
text(0,c,0,"$y$", "Interpreter","latex","fontsize",fs)
text(0,0,c,"$z$", "Interpreter","latex","fontsize",fs)
Expand Down
Binary file modified InstructorResources/Solutions/VectorBasicsSoln.mlx
Binary file not shown.
Binary file modified Scripts/VectorBasics.mlx
Binary file not shown.

0 comments on commit 4baf4b1

Please sign in to comment.