Skip to main content
7 events
when toggle format what by license comment
Jun 23, 2012 at 12:01 comment added night owl @Mr.Wizard: Okay, so is that saying k*Sin[x], so is it plotting: {Sin[x],2 Sin[x], 3 Sin[x], 4 Sin[x]}? I don't want to change the original function by a multiplying scalar due to the Table iterator. If that's what it is doing from {k,4}. Could it be done on something like what I put in the question underneath EDIT? But keeping Do[ ] and not using Table[ ].
Jun 23, 2012 at 9:38 comment added Mr.Wizard @nightowl I'm not sure what you're trying to do but it's quite possible you don't realize you can pass a table of graphics objects directly to GraphicsGrid: GraphicsGrid[ Table[Plot[k Sin[x] + x, {x, 0, 3 Pi}], {k, 4}] ~Partition~ 2 ] (Here I generate four plots with Table, split it into a 2x2 table with Partition, and pass the result to GraphicsGrid.)
Jun 23, 2012 at 8:57 comment added night owl @Mr.Wizard: Oh my! Thank You. This helps alot! :). So could you ("usually") input list in place of an iterator if you have several values to input with staggering increments of time? Now only to get GraphicsGrid to work in junction with it and that will complete my handy toolbox for the moment. :) Do each graphic have a internal name associated with them or could one be assigned to them. Because I know that GraphicsGrid[{{g_11,g_12,...},...}] needs to have variables (functions) hence -> ($g_{11},g_{12}$) assigned for input to create the 2-D grid.
Jun 23, 2012 at 8:29 comment added Mr.Wizard @nightowl the syntax you are looking for is Do[f[x], {x, {0, 0.3, 0.7, 0.10, 0.14, 0.16}}] -- this also works for Table. Also realize you could use Scan or Map, e.g. Scan[f, {0, 0.3, 0.7, 0.10, 0.14, 0.16}]
Jun 23, 2012 at 8:11 comment added night owl the Do command. Or is there something you can add.. Or would you just have to input the times in manually for a case like this?
Jun 23, 2012 at 8:10 comment added night owl Thanks for that alternative method. Could you read the last comment under Szabolcs post. I want to try and use GraphicsGrid with the Do command. Also, another concern came up. What is the most efficient way of using the iterator for the Do command. Because at most it take three arguments, e.g. Do[expr,{k,min,max,step-size}]. But what if you have a function such as $\phi[\xi_,\nu_,t]$, and you want to plot for value of time say: $t=0,0.3,0.7,0.10,0.14,0.16$. As you can notice, the time instances (steps) are not by the same amount, so how could you account for this when using
Jun 23, 2012 at 7:39 history answered István Zachar CC BY-SA 3.0