Tag Info

New answers tagged

4

You can read the documentation of PlotStyle under Details. Using Thickness, Dashing and RGBColor or Hue may help. Here for 80 distinctive styles. Block[ { styles = Flatten[ Table[ {Hue[h], Thickness[t], Dashing[{d1, d2, d3}]} , {h, 0, 0.9, 0.2} , {t, {0.001, 0.003}} , {d1, {0.01, 0.02}} , {d2, {0.005, 0.02}} , {d3, ...


1

Here is a very simple solution to "pad" your grid : If : grid={-5., -4., -3., -2., -1., 0., 1., 2., 3., 4.} then you can just multiply it this way : grid*{1, 0, 1, 0, 1, 0, 1, 0, 1, 0} (*{-5., 0., -3., 0., -1., 0., 1., 0., 3., 0.}*) or grid*{1, 0, 0, 1, 0, 0, 1, 0, 0, 1} (*{-5., 0., 0., -2., 0., 0., 1., 0., 0., 4.} *) To generate automatically the ...


3

max = 10; L = 10.; dz = 1; grid2 = Riffle[Table[-L/2 + (n - 1) dz, {n, 1, max, 2}], ConstantArray[0., max/2]] (* or Riffle[Table[-L/2 + (n - 1) dz, {n, 1, max, 2}], 0., {2, -1, 2}] *) (* {-5., 0., -3., 0., -1., 0., 1., 0., 3., 0.} *) or grid2b =Join @@ Table[{-L/2 + (n - 1) dz, 0.}, {n, 1, max, 2}] (* {-5., 0., -3., 0., -1., 0., 1., 0., 3., 0.} *) or ...



Top 50 recent answers are included