skratch
Reputation
Top tag
Next privilege 75 Rep.
Set bounties
 Apr 7 comment Can I plot a cone about an arbitrary axis in 3D? Just edited my submission. Thanks again. Apr 7 revised Can I plot a cone about an arbitrary axis in 3D? added 271 characters in body Apr 7 comment Can I plot a cone about an arbitrary axis in 3D? Oh boy. I didn't know that function existed. That makes life very easy. For what its worth the code I pasted above was made to do some other stuff, I didn't come up with it for the sole purpose of generating a cone! Thanks @Jens. Apr 7 asked Can I plot a cone about an arbitrary axis in 3D? Aug 25 awarded Popular Question Aug 12 accepted How to use If to select arguments min & max in Range? Aug 12 comment How to use If to select arguments min & max in Range? The use of If on the outside instead of the inside, as you've suggested, is far more straight forward. Sometimes my brain picks a poor starting point and everything that follows is doomed! Aug 12 asked How to use If to select arguments min & max in Range? Jun 5 comment Function for Autocorrelation In response to myself and anyone else who may be interested: The "CorrelationFunction" approach seems to indeed be the "correct" one if you're looking for an autocorrelation function (ACF). I'm not so sure about ListConvolve and ListCorrelate... In v9, CorrelationFunction is scaled to vary between 1 and -1 and takes its maximum value at the first data point, which is a property of autocorrelation functions. Jun 4 comment Function for Autocorrelation This does not seem to match the output of the ListConvolve method (just look at the y-scale). Using some test functions like a square pulse and a triangular pulse, I also don't get the expected output using CorrelationFunction. Any idea what the discrepancy is? I'm working with some applications of autocorrelation functions and I'm struggling to find the discrepancy between the two methods. May 24 comment Changing the order of elements in a chart legend Ah, I got it! Seems a regular Plot only has one Rule following the two List elements in the FullForm of SwatchLegend. Removing r2_Rule and r2 in the delayed replacement does the trick. May 24 comment Changing the order of elements in a chart legend Where can I learn more about this type of syntax, eg. the l1_List and ri_Rule stuff? I'm not exactly sure how this is working, nor do I know how to use FullForm to help figure this out. I'm trying to flip a legend on a ListLogLogPlot using SwatchLegend. May 13 comment Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange Wow you're right. I happen to still have v8 installed so I loaded it up and checked. It looks like in v9 it no longer works. That's very strange. May 13 comment Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange Ah that's a nifty little function that I wasn't familiar with. The issue still remains, though, that it would be a plot of {x,y} pairs which makes it take much longer. May 13 asked Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange Jan 8 revised Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? added 275 characters in body Jan 8 comment Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Thanks @cormullion that did the trick. Jan 8 accepted Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Jan 8 comment Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Deleted a comment because I was dumb. However, the point still stands from the deleted comment that I had to add //ToExpression to your definition of ns to get it to work. The numbers were not being treated as actual numbers, it would seem. Jan 8 comment Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Forgot about FileNameTake. Should be ok now!