18,733 reputation
350128
bio website
location Sydney, Australia
age 44
visits member for 2 years, 6 months
seen 20 mins ago

Moderator of Mathematica.SE and Celtic goddess.

Check out the Mathematica StackExchange Q+A site


Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Related but not duplicate. Neither ImageMargins nor ImagePadding put white space above the title in a way that prevents cropping in EMF export, and the line spacing issue is weird. Because I have a custom function to make the title and I use it in both PlotLabel and as a separate grid element, I want some consistency.
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
I tried ImageMargins but the text is still cropped, even though there is whitespace.
Jul
6
comment Selecting elements from a list one by one
This gives the correct output but there is no need to map the function part by part. Addition works element-by-element on lists (vectors, matrices, tensors).
Jul
6
comment Selecting elements from a list one by one
Where you are getting confused is with the idea that you need to do this "one by one". Mathematica does not need to do element-by-element arithmetic on lists "one by one" as if looping over the list. See this question for some useful parts of the Mathematica language that are more efficient and faster to write than the procedural way you are thinking about it now.
Jul
5
comment Alternatives to procedural loops and iterating over lists in Mathematica
@Jagra by all means add an answer or edit mine.
Jul
5
comment Assigning a particular value to array elements
yes, but please ask this is a separate question.
Jul
5
comment Assigning a particular value to array elements
@Daniel see my second answer which I have just posted.
Jul
5
comment Assigning a particular value to array elements
You definitely don't need that For loop. Xarray=A @@@ Tuples[Range[0, 9], 3] will do just as well, and it's much, much faster to type and to evaluate.
Jul
5
comment How can I open an Excel file and modify it in Mathematica?
@J.M. actually the undocumented TableView looks very spreadsheet-like.
Jul
2
comment Textures are not rendered in combined graphics
I am on 8.0.4. and Windows 7 - I get the same PDF (but not PNG) output but I think the first output is because the two Show statements are not in separate cells? In the notebook (and in PNG export) I get the nice-looking last graphic. Since the PDF and EPS versions are not vector graphics anyway, why not just export as PNG?
Jul
2
comment How can I easily eliminate the dependency of a stylesheet on a non-built-in stylesheet?
Nice, but I nearly downvoted you for the use of Comic Sans.
Jul
1
comment Custom function not returning any output
Yes the missing commas was the issue I came up with too.
Jul
1
comment Custom function not returning any output
This still gives the Thread::tdlen error for me, and I do get an output. I'm currently trying to redo this function using FoldList but getting different answers.
Jul
1
comment Custom function not returning any output
When I execute it in a fresh Mathematica kernel, I do get some output (a very large polynomial) and some error messages like (Thread::tdlen: Objects of unequal length in {0} {0,2} cannot be combined. >>). Have you tried this in a fresh kernel? Also, you are not localizing tmpSet. Try wrapping your function with Module. Also, try Fold instead of Do and Return.
Jun
30
comment Question about VertexTextureCoordinates
@ndroock1 I don't understand what you are trying to get - do you want a single copy of the picture, centered on that coordinate? In that case, you need Inset. I can do up another answer if that's what you wanted.
Jun
30
comment ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?
Sorry, this was the one that the comment " It's a good idea, but if one is drawing a ListLogPlot anyway one may as well just do that instead of using ScalingFunctions." was about
Jun
30
comment ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?
Yes, but I realised that isn't the issue - one actually has to rescale the points for the AxisOrigin: {Log@Length@test, -Max[test]}} in this case. Given that, it will probably be easier for me to just catch the value of the option and change the head of the plotting function to ListLogPlot or ListLogLogPlot depending on its value. The tick labels inside the plot area would also have to be fixed.
Jun
30
comment ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?
+1: certainly food for thought, but there are some strange overlaps.
Jun
30
comment Consistent Plot Styles across multiple MMA files and data sets
I should have posted bits of my code ages ago :) I can't remember why I used Sequence @@ but it was probably a reaction to a code tangle a year ago when I first started working on this project.
Jun
30
comment Do I have to code each case of this Grid full of plots separately?
@Mr.Wizard I agree yours was neater, but in the context of the actual application, this approach worked better with what I already had. The total package is about 120kb and there were things I didn't want to mess too much with. The real version also has footnotes, source notes, titles and subtitles, and pulls the title and subtitle for each subgraph and moves it inside the plot are as Inset text in the Prolog option. Huge amounts of complexity. I also had to allow for the fact that, if my version is ever used by others in my firm, they have to be able to follow it.