Skip to content

Commit 4baf4b1

Browse files
committed
Replace hard-coded colors with SeriesIndex
1 parent 8e5d8bc commit 4baf4b1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

FunctionLibrary/PlotVector3DAxis.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ function PlotVector3DAxis(axlims)
88
b = ub-a;
99
buff = b*0.1;
1010
c = ub+buff/2;
11-
ca = [0.3 0.3 0.3 0.6];
1211
axis([a-buff,c+buff,a-buff,c+buff,a-buff,c+buff])
13-
quiver3(a,0,0,b,0,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
14-
quiver3(0,a,0,0,b,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
15-
quiver3(0,0,a,0,0,b,"autoscale","off","maxheadsize",1/10,"linewidth",1,"color",ca)
12+
quiver3(a,0,0,b,0,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
13+
quiver3(0,a,0,0,b,0,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
14+
quiver3(0,0,a,0,0,b,"autoscale","off","maxheadsize",1/10,"linewidth",1,SeriesIndex=1)
1615
text(c,0,0,"$x$", "Interpreter","latex","fontsize",fs)
1716
text(0,c,0,"$y$", "Interpreter","latex","fontsize",fs)
1817
text(0,0,c,"$z$", "Interpreter","latex","fontsize",fs)
9.03 KB
Binary file not shown.

Scripts/VectorBasics.mlx

-1.62 KB
Binary file not shown.

0 commit comments

Comments
 (0)